]> git.lizzy.rs Git - rust.git/blob - src/test/ui/out-of-order-shadowing.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / out-of-order-shadowing.stderr
1 error[E0659]: `bar` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
2   --> $DIR/out-of-order-shadowing.rs:5:1
3    |
4 LL | bar!(); //~ ERROR `bar` is ambiguous
5    | ^^^ ambiguous name
6    |
7 note: `bar` could refer to the macro defined here
8   --> $DIR/out-of-order-shadowing.rs:4:1
9    |
10 LL | define_macro!(bar);
11    | ^^^^^^^^^^^^^^^^^^^
12 note: `bar` could also refer to the macro defined here
13   --> $DIR/out-of-order-shadowing.rs:3:1
14    |
15 LL | macro_rules! bar { () => {} }
16    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0659`.