rust/tests/ui/duplicate/duplicate-check-macro-exports.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
633 B
Plaintext
Raw Normal View History

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
|
LL | pub use std::panic;
| ---------- previous import of the macro `panic` here
...
2019-03-09 12:03:44 +00:00
LL | macro_rules! panic { () => {} }
| ^^^^^^^^^^^^^^^^^^ `panic` redefined here
|
= note: `panic` must be defined only once in the macro namespace of this module
help: you can use `as` to change the binding name of the import
|
LL | pub use std::panic as other_panic;
| ~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
For more information about this error, try `rustc --explain E0255`.