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