[rust-dev] no error or warning when an unknown attribute is used

Ilya Dmitrichenko errordeveloper at gmail.com
Wed Jul 16 06:55:38 PDT 2014


On 16 July 2014 14:51, Ben Harris <mail at bharr.is> wrote:
> Did it come up as an unused-attribute warning?

No, it didn't. This is all the output I got:

>> > rustc foo.rs
>> foo.rs:13:3: 13:15 error: failed to find an implementation of trait
>>
>> serialize::serialize::Encodable<serialize::json::Encoder<'_>,std::io::IoError>
>> for Data
>> foo.rs:13   json::encode(&data);
>>                 ^~~~~~~~~~~~


More information about the Rust-dev mailing list