fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: `macro_two` is already in scope 2 --> $DIR/macro-shadowing.rs:12:5 3 | 4LL | #[macro_use] 5 | ^^^^^^^^^^^^ 6... 7LL | m1!(); 8 | ------ in this macro invocation 9 | 10 = note: macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560) 11 12error[E0659]: `foo` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution) 13 --> $DIR/macro-shadowing.rs:17:1 14 | 15LL | foo!(); 16 | ^^^ ambiguous name 17 | 18note: `foo` could refer to the macro defined here 19 --> $DIR/macro-shadowing.rs:10:5 20 | 21LL | macro_rules! foo { () => {} } 22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 23... 24LL | m1!(); 25 | ------ in this macro invocation 26note: `foo` could also refer to the macro defined here 27 --> $DIR/macro-shadowing.rs:5:1 28 | 29LL | macro_rules! foo { () => {} } 30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 31 32error: aborting due to 2 previous errors 33 34For more information about this error, try `rustc --explain E0659`.