2018-07-29 06:51:17 -05:00
|
|
|
error[E0255]: the name `panic` is defined multiple times
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/duplicate-check-macro-exports.rs:4:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-07-29 06:51:17 -05:00
|
|
|
LL | pub use std::panic;
|
|
|
|
| ---------- previous import of the macro `panic` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | macro_rules! panic { () => {} }
|
2018-07-29 06:51:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ `panic` redefined here
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-07-29 06:51:17 -05:00
|
|
|
= note: `panic` must be defined only once in the macro namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-07-29 06:51:17 -05:00
|
|
|
LL | pub use std::panic as other_panic;
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-07-29 06:51:17 -05:00
|
|
|
For more information about this error, try `rustc --explain E0255`.
|