summary refs log tree commit diff
path: root/src/test/ui/macro-shadowing.stderr
blob: 28f09509a62337d4557d449ed7b8f19af28c5243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error: `macro_two` is already in scope
  --> $DIR/macro-shadowing.rs:22:5
   |
LL |     #[macro_use] //~ ERROR `macro_two` is already in scope
   |     ^^^^^^^^^^^^
...
LL | m1!();
   | ------ in this macro invocation
   |
   = note: macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560)

error: `foo` is already in scope
  --> $DIR/macro-shadowing.rs:20:5
   |
LL |     macro_rules! foo { () => {} } //~ ERROR `foo` is already in scope
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | m1!();
   | ------ in this macro invocation
   |
   = note: macro-expanded `macro_rules!`s may not shadow existing macros (see RFC 1560)

error: aborting due to 2 previous errors