]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate/duplicate-check-macro-exports.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / duplicate / duplicate-check-macro-exports.stderr
1 error[E0255]: the name `panic` is defined multiple times
2   --> $DIR/duplicate-check-macro-exports.rs:4:1
3    |
4 LL | pub use std::panic;
5    |         ---------- previous import of the macro `panic` here
6 ...
7 LL | macro_rules! panic { () => {} }
8    | ^^^^^^^^^^^^^^^^^^ `panic` redefined here
9    |
10    = note: `panic` must be defined only once in the macro namespace of this module
11 help: you can use `as` to change the binding name of the import
12    |
13 LL | pub use std::panic as other_panic;
14    |         ~~~~~~~~~~~~~~~~~~~~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0255`.