fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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