fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.2 KiB32 linesraw
1error: `derive` may only be applied to structs, enums and unions
2  --> $DIR/issue-43927-non-ADT-derive.rs:3:1
3   |
4LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug, PartialEq, Eq)]`
6
7error: cannot determine resolution for the derive macro `Debug`
8  --> $DIR/issue-43927-non-ADT-derive.rs:3:11
9   |
10LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
11   |           ^^^^^
12   |
13   = note: import resolution is stuck, try simplifying macro imports
14
15error: cannot determine resolution for the derive macro `PartialEq`
16  --> $DIR/issue-43927-non-ADT-derive.rs:3:18
17   |
18LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
19   |                  ^^^^^^^^^
20   |
21   = note: import resolution is stuck, try simplifying macro imports
22
23error: cannot determine resolution for the derive macro `Eq`
24  --> $DIR/issue-43927-non-ADT-derive.rs:3:29
25   |
26LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
27   |                             ^^
28   |
29   = note: import resolution is stuck, try simplifying macro imports
30
31error: aborting due to 4 previous errors
32