1 error[E0364]: `legacy_macro` is private, and cannot be re-exported
2 --> $DIR/macro-rules.rs:12:9
4 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is private, and cannot be re-exported
7 note: consider marking `legacy_macro` as `pub` in the imported module
8 --> $DIR/macro-rules.rs:12:9
10 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is private, and cannot be re-exported
13 error[E0364]: `legacy_macro` is private, and cannot be re-exported
14 --> $DIR/macro-rules.rs:31:13
16 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is ambiguous
19 note: consider marking `legacy_macro` as `pub` in the imported module
20 --> $DIR/macro-rules.rs:31:13
22 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is ambiguous
25 error[E0364]: `legacy_macro` is private, and cannot be re-exported
26 --> $DIR/macro-rules.rs:42:9
28 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is private, and cannot be re-exported
31 note: consider marking `legacy_macro` as `pub` in the imported module
32 --> $DIR/macro-rules.rs:42:9
34 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is private, and cannot be re-exported
37 error[E0659]: `legacy_macro` is ambiguous (name vs any other name during import resolution)
38 --> $DIR/macro-rules.rs:31:13
40 LL | use legacy_macro as _; //~ ERROR `legacy_macro` is ambiguous
41 | ^^^^^^^^^^^^ ambiguous name
43 note: `legacy_macro` could refer to the macro defined here
44 --> $DIR/macro-rules.rs:28:9
46 LL | macro_rules! legacy_macro { () => () }
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 note: `legacy_macro` could also refer to the macro defined here
49 --> $DIR/macro-rules.rs:25:5
51 LL | macro legacy_macro() {}
52 | ^^^^^^^^^^^^^^^^^^^^^^^
53 = help: use `self::legacy_macro` to refer to this macro unambiguously
55 error: aborting due to 4 previous errors
57 Some errors occurred: E0364, E0659.
58 For more information about an error, try `rustc --explain E0364`.