]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/out-of-order-shadowing.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / macros / out-of-order-shadowing.stderr
1 error[E0659]: `bar` is ambiguous
2 --> $DIR/out-of-order-shadowing.rs:5:1
3 |
4 LL | bar!();
5 | ^^^ ambiguous name
6 |
7 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
8 note: `bar` could refer to the macro defined here
9 --> $DIR/out-of-order-shadowing.rs:4:1
10 |
11 LL | define_macro!(bar);
12 | ^^^^^^^^^^^^^^^^^^
13 note: `bar` could also refer to the macro defined here
14 --> $DIR/out-of-order-shadowing.rs:3:1
15 |
16 LL | macro_rules! bar { () => {} }
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 = note: this error originates in the macro `define_macro` (in Nightly builds, run with -Z 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`.