2021-10-09 12:13:15 +00:00
|
|
|
error: `derive` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-43927-non-ADT-derive.rs:1:1
|
|
|
|
|
|
|
|
|
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-01-27 11:09:55 +00:00
|
|
|
LL |
|
2023-10-18 00:24:21 +00:00
|
|
|
LL | struct DerivedOn;
|
|
|
|
| --------- the inner attribute doesn't annotate this struct
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
|
|
|
LL + #[derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
2024-01-27 11:09:55 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-08-23 02:22:52 +00:00
|
|
|
|