fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
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: cannot determine resolution for the derive macro `Eq` 32 --> $DIR/issue-43927-non-ADT-derive.rs:3:29 33 | 34LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute! 35 | ^^ 36 | 37 = note: import resolution is stuck, try simplifying macro imports 38 39error: cannot determine resolution for the derive macro `PartialEq` 40 --> $DIR/issue-43927-non-ADT-derive.rs:3:18 41 | 42LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute! 43 | ^^^^^^^^^ 44 | 45 = note: import resolution is stuck, try simplifying macro imports 46 47error: cannot determine resolution for the derive macro `Debug` 48 --> $DIR/issue-43927-non-ADT-derive.rs:3:11 49 | 50LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute! 51 | ^^^^^ 52 | 53 = note: import resolution is stuck, try simplifying macro imports 54 55error: aborting due to 7 previous errors 56