]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-redefine.stderr
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[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`.