]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-redefine.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / hygiene / cross-crate-redefine.stderr
1 error[E0428]: the name `MyStruct` is defined multiple times
2   --> $DIR/cross-crate-redefine.rs:10:1
3    |
4 LL | my_struct!(define);
5    | ^^^^^^^^^^^^^^^^^^ `MyStruct` redefined here
6 LL |
7 LL | my_struct!(define);
8    | ------------------ previous definition of the type `MyStruct` here
9    |
10    = note: `MyStruct` must be defined only once in the type namespace of this module
11    = note: this error originates in the macro `my_struct` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0428`.