]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/macro-shadowing.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / macros / macro-shadowing.stderr
CommitLineData
b7449926 1error: `macro_two` is already in scope
0731742a 2 --> $DIR/macro-shadowing.rs:12:5
b7449926 3 |
532ac7d7 4LL | #[macro_use]
b7449926
XL
5 | ^^^^^^^^^^^^
6...
7LL | m1!();
8 | ------ in this macro invocation
9 |
10 = note: macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560)
17df50a5 11 = note: this error originates in the macro `m1` (in Nightly builds, run with -Z macro-backtrace for more info)
b7449926 12
13cf67c4 13error[E0659]: `foo` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
0731742a 14 --> $DIR/macro-shadowing.rs:17:1
b7449926 15 |
532ac7d7 16LL | foo!();
b7449926
XL
17 | ^^^ ambiguous name
18 |
13cf67c4 19note: `foo` could refer to the macro defined here
0731742a 20 --> $DIR/macro-shadowing.rs:10:5
b7449926
XL
21 |
22LL | macro_rules! foo { () => {} }
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24...
25LL | m1!();
26 | ------ in this macro invocation
13cf67c4 27note: `foo` could also refer to the macro defined here
0731742a 28 --> $DIR/macro-shadowing.rs:5:1
b7449926
XL
29 |
30LL | macro_rules! foo { () => {} }
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17df50a5 32 = note: this error originates in the macro `m1` (in Nightly builds, run with -Z macro-backtrace for more info)
b7449926
XL
33
34error: aborting due to 2 previous errors
35
36For more information about this error, try `rustc --explain E0659`.