fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
789 B21 linesraw
1error[E0659]: `bar` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
2  --> $DIR/out-of-order-shadowing.rs:5:1
3   |
4LL | bar!();
5   | ^^^ ambiguous name
6   |
7note: `bar` could refer to the macro defined here
8  --> $DIR/out-of-order-shadowing.rs:4:1
9   |
10LL | define_macro!(bar);
11   | ^^^^^^^^^^^^^^^^^^^
12note: `bar` could also refer to the macro defined here
13  --> $DIR/out-of-order-shadowing.rs:3:1
14   |
15LL | macro_rules! bar { () => {} }
16   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0659`.