rust/src/test/ui/macro-shadowing.stderr
Vadim Petrochenkov fa2d9fc4b9 Update UI tests
2018-02-26 20:24:02 +03:00

24 lines
688 B
Text

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