fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.1 KiB30 linesraw
1error[E0428]: the name `D` is defined multiple times
2  --> $DIR/dollar-crate.rs:26:13
3   |
4LL |             struct D($crate::S);
5   |             ^^^^^^^^^^^^^^^^^^^^
6   |             |
7   |             `D` redefined here
8   |             previous definition of the type `D` here
9...
10LL |     local!();
11   |     --------- in this macro invocation
12   |
13   = note: `D` must be defined only once in the type namespace of this module
14   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16error[E0428]: the name `D` is defined multiple times
17  --> $DIR/dollar-crate.rs:36:5
18   |
19LL |     dollar_crate_external::external!();
20   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21   |     |
22   |     `D` redefined here
23   |     previous definition of the type `D` here
24   |
25   = note: `D` must be defined only once in the type namespace of this module
26   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
27
28error: aborting due to 2 previous errors
29
30For more information about this error, try `rustc --explain E0428`.