|
| 1 | +error[E0659]: `panic` is ambiguous |
| 2 | + --> $DIR/ambiguous-panic-globvsglob.rs:19:5 |
| 3 | + | |
| 4 | +LL | panic!(); |
| 5 | + | ^^^^^ ambiguous name |
| 6 | + | |
| 7 | + = note: ambiguous because of multiple glob imports of a name in the same module |
| 8 | +note: `panic` could refer to the macro imported here |
| 9 | + --> $DIR/ambiguous-panic-globvsglob.rs:13:9 |
| 10 | + | |
| 11 | +LL | use m1::*; |
| 12 | + | ^^^^^ |
| 13 | + = help: consider adding an explicit import of `panic` to disambiguate |
| 14 | +note: `panic` could also refer to the macro imported here |
| 15 | + --> $DIR/ambiguous-panic-globvsglob.rs:14:9 |
| 16 | + | |
| 17 | +LL | use m2::*; |
| 18 | + | ^^^^^ |
| 19 | + = help: consider adding an explicit import of `panic` to disambiguate |
| 20 | + |
| 21 | +warning: `panic` is ambiguous |
| 22 | + --> $DIR/ambiguous-panic-globvsglob.rs:19:5 |
| 23 | + | |
| 24 | +LL | panic!(); |
| 25 | + | ^^^^^ ambiguous name |
| 26 | + | |
| 27 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 28 | + = note: for more information, see issue #147319 <https://github.com/rust-lang/rust/issues/147319> |
| 29 | + = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution |
| 30 | +note: `panic` could refer to the macro imported here |
| 31 | + --> $DIR/ambiguous-panic-globvsglob.rs:13:9 |
| 32 | + | |
| 33 | +LL | use m1::*; |
| 34 | + | ^^^^^ |
| 35 | + = help: consider adding an explicit import of `panic` to disambiguate |
| 36 | +note: `panic` could also refer to a macro from prelude |
| 37 | + --> $SRC_DIR/std/src/prelude/mod.rs:LL:COL |
| 38 | + = note: `#[warn(ambiguous_panic_imports)]` (part of `#[warn(future_incompatible)]`) on by default |
| 39 | + |
| 40 | +error: aborting due to 1 previous error; 1 warning emitted |
| 41 | + |
| 42 | +For more information about this error, try `rustc --explain E0659`. |
0 commit comments