rust/src/test/ui/span/issue-43927-non-ADT-derive.stderr

34 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-09-05 07:55:15 -05:00
error[E0774]: `derive` may only be applied to structs, enums and unions
2018-12-25 09:56:47 -06:00
--> $DIR/issue-43927-non-ADT-derive.rs:3:1
|
2018-02-22 18:42:32 -06:00
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug, PartialEq, Eq)]`
error: cannot determine resolution for the derive macro `Debug`
--> $DIR/issue-43927-non-ADT-derive.rs:3:11
|
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
| ^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `PartialEq`
--> $DIR/issue-43927-non-ADT-derive.rs:3:18
|
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Eq`
--> $DIR/issue-43927-non-ADT-derive.rs:3:29
|
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
| ^^
|
= note: import resolution is stuck, try simplifying macro imports
error: aborting due to 4 previous errors
2020-09-05 07:55:15 -05:00
For more information about this error, try `rustc --explain E0774`.