]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-shadowing.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / macros / macro-shadowing.stderr
1 error: `macro_two` is already in scope
2   --> $DIR/macro-shadowing.rs:22:5
3    |
4 LL |     #[macro_use] //~ ERROR `macro_two` is already in scope
5    |     ^^^^^^^^^^^^
6 ...
7 LL | m1!();
8    | ------ in this macro invocation
9    |
10    = note: macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560)
11
12 error[E0659]: `foo` is ambiguous
13   --> $DIR/macro-shadowing.rs:27:1
14    |
15 LL | foo!(); //~ ERROR `foo` is ambiguous
16    | ^^^ ambiguous name
17    |
18 note: `foo` could refer to the name defined here
19   --> $DIR/macro-shadowing.rs:20:5
20    |
21 LL |     macro_rules! foo { () => {} }
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 ...
24 LL | m1!();
25    | ------ in this macro invocation
26 note: `foo` could also refer to the name defined here
27   --> $DIR/macro-shadowing.rs:15:1
28    |
29 LL | macro_rules! foo { () => {} }
30    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    = note: macro-expanded macros do not shadow
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0659`.