25 lines
742 B
Plaintext
25 lines
742 B
Plaintext
|
error: `macro_two` is already in scope
|
||
|
--> $DIR/macro-shadowing.rs:23:5
|
||
|
|
|
||
|
23 | #[macro_use] //~ ERROR `macro_two` is already in scope
|
||
|
| ^^^^^^^^^^^^
|
||
|
...
|
||
|
27 | m1!(); //~ NOTE in this expansion
|
||
|
| ------ 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
|
||
|
|
|
||
|
20 | macro_rules! foo { () => {} } //~ ERROR `foo` is already in scope
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
...
|
||
|
27 | m1!(); //~ NOTE in this expansion
|
||
|
| ------ 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
|
||
|
|