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

11 lines
266 B
Rust
Raw Normal View History

#[derive(Copy(Bad))] //~ ERROR expected one of `)`, `,`, or `::`, found `(`
struct Test1;
#[derive(Copy="bad")] //~ ERROR expected one of `)`, `,`, or `::`, found `=`
struct Test2;
#[derive] //~ ERROR malformed `derive` attribute input
struct Test4;
fn main() {}