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