]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-bad.stderr
Auto merge of #106959 - tmiasko:opt-funclets, r=davidtwco
[rust.git] / tests / ui / proc-macro / derive-bad.stderr
1 error: expected `:`, found `}`
2   --> $DIR/derive-bad.rs:6:10
3    |
4 LL | #[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
12 error: proc-macro derive produced unparseable tokens
13   --> $DIR/derive-bad.rs:6:10
14    |
15 LL | #[derive(A)]
16    |          ^
17
18 error[E0428]: the name `A` is defined multiple times
19   --> $DIR/derive-bad.rs:9:1
20    |
21 LL | #[derive(A)]
22    |          - previous definition of the type `A` here
23 ...
24 LL | struct A;
25    | ^^^^^^^^^ `A` redefined here
26    |
27    = note: `A` must be defined only once in the type namespace of this module
28
29 error: aborting due to 3 previous errors
30
31 For more information about this error, try `rustc --explain E0428`.