fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected `:`, found `}` 2 --> $DIR/derive-bad.rs:6:10 3 | 4LL | #[derive(A)] 5 | ^ 6 | | 7 | expected `:` 8 | while parsing this struct 9 | 10 = note: this error originates in the derive macro `A` (in Nightly builds, run with -Z macro-backtrace for more info) 11 12error: proc-macro derive produced unparsable tokens 13 --> $DIR/derive-bad.rs:6:10 14 | 15LL | #[derive(A)] 16 | ^ 17 18error[E0428]: the name `A` is defined multiple times 19 --> $DIR/derive-bad.rs:9:1 20 | 21LL | #[derive(A)] 22 | - previous definition of the type `A` here 23... 24LL | struct A; 25 | ^^^^^^^^^ `A` redefined here 26 | 27 = note: `A` must be defined only once in the type namespace of this module 28 29error: aborting due to 3 previous errors 30 31For more information about this error, try `rustc --explain E0428`.