]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-shadowing.stderr
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[rust.git] / tests / ui / macros / macro-shadowing.stderr
1 error: `macro_two` is already in scope
2   --> $DIR/macro-shadowing.rs:12:5
3    |
4 LL |     #[macro_use]
5    |     ^^^^^^^^^^^^
6 ...
7 LL | m1!();
8    | ----- in this macro invocation
9    |
10    = note: macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560)
11    = note: this error originates in the macro `m1` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error[E0659]: `foo` is ambiguous
14   --> $DIR/macro-shadowing.rs:17:1
15    |
16 LL | foo!();
17    | ^^^ ambiguous name
18    |
19    = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
20 note: `foo` could refer to the macro defined here
21   --> $DIR/macro-shadowing.rs:10:5
22    |
23 LL |     macro_rules! foo { () => {} }
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 ...
26 LL | m1!();
27    | ----- in this macro invocation
28 note: `foo` could also refer to the macro defined here
29   --> $DIR/macro-shadowing.rs:5:1
30    |
31 LL | macro_rules! foo { () => {} }
32    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33    = note: this error originates in the macro `m1` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0659`.