]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/derive-bad.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / proc-macro / derive-bad.stderr
1 error: expected `:`, found `}`
2   --> $DIR/derive-bad.rs:6:10
3    |
4 LL | #[derive(A)]
5    |          ^ expected `:`
6    |
7    = note: this error originates in the derive macro `A` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: proc-macro derive produced unparseable tokens
10   --> $DIR/derive-bad.rs:6:10
11    |
12 LL | #[derive(A)]
13    |          ^
14
15 error[E0428]: the name `A` is defined multiple times
16   --> $DIR/derive-bad.rs:9:1
17    |
18 LL | #[derive(A)]
19    |          - previous definition of the type `A` here
20 ...
21 LL | struct A;
22    | ^^^^^^^^^ `A` redefined here
23    |
24    = note: `A` must be defined only once in the type namespace of this module
25
26 error: aborting due to 3 previous errors
27
28 For more information about this error, try `rustc --explain E0428`.