]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-43927-non-ADT-derive.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / span / issue-43927-non-ADT-derive.stderr
1 error: cannot determine resolution for the attribute macro `derive`
2   --> $DIR/issue-43927-non-ADT-derive.rs:1:4
3    |
4 LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
5    |    ^^^^^^
6    |
7    = note: import resolution is stuck, try simplifying macro imports
8
9 error: `derive` attribute cannot be used at crate level
10   --> $DIR/issue-43927-non-ADT-derive.rs:1:1
11    |
12 LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14    |
15 help: perhaps you meant to use an outer attribute
16    |
17 LL | #[derive(Debug, PartialEq, Eq)] // should be an outer attribute!
18    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
20 error: aborting due to 2 previous errors
21