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

29 lines
748 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: expected one of `)`, `,`, or `::`, found `(`
2018-12-25 09:56:47 -06:00
--> $DIR/malformed-derive-entry.rs:1:14
2018-08-08 07:28:26 -05:00
|
LL | #[derive(Copy(Bad))]
| ^ expected one of `)`, `,`, or `::` here
error: expected one of `)`, `,`, or `::`, found `=`
--> $DIR/malformed-derive-entry.rs:4:14
2018-08-08 07:28:26 -05:00
|
LL | #[derive(Copy="bad")]
| ^ expected one of `)`, `,`, or `::` here
warning: empty trait list in `derive`
--> $DIR/malformed-derive-entry.rs:7:1
2018-08-08 07:28:26 -05:00
|
LL | #[derive()]
| ^^^^^^^^^^^
error: bad `derive` attribute
--> $DIR/malformed-derive-entry.rs:10:1
2018-08-08 07:28:26 -05:00
|
LL | #[derive]
| ^^^^^^^^^ missing traits to be derived
|
= note: `derive` must be of the form: `#[derive(Trait1, Trait2, ...)]`
2018-08-08 07:28:26 -05:00
error: aborting due to 3 previous errors
2018-08-08 07:28:26 -05:00