2017-12-10 13:47:55 -06:00
|
|
|
error: `macro_two` is already in scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/macro-shadowing.rs:22:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
22 | #[macro_use] //~ ERROR `macro_two` is already in scope
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | m1!();
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------ 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
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | m1!();
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------ 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
|
|
|
|
|