rust/src/test/ui/malformed/malformed-derive-entry.rs

16 lines
296 B
Rust
Raw Normal View History

#[derive(Copy(Bad))]
2017-03-08 17:13:35 -06:00
//~^ ERROR expected one of `)`, `,`, or `::`, found `(`
struct Test1;
#[derive(Copy="bad")]
2017-03-08 17:13:35 -06:00
//~^ ERROR expected one of `)`, `,`, or `::`, found `=`
struct Test2;
#[derive()]
//~^ WARNING empty trait list
struct Test3;
#[derive]
//~^ WARNING empty trait list
struct Test4;