1 error[E0364]: `legacy_macro` is private, and cannot be re-exported
2 --> $DIR/macro-rules.rs:11:13
4 LL | pub use legacy_macro as _;
7 note: consider marking `legacy_macro` as `pub` in the imported module
8 --> $DIR/macro-rules.rs:11:13
10 LL | pub use legacy_macro as _;
13 error[E0659]: `legacy_macro` is ambiguous
14 --> $DIR/macro-rules.rs:31:13
16 LL | use legacy_macro as _;
17 | ^^^^^^^^^^^^ ambiguous name
19 = note: ambiguous because of multiple potential import sources
20 note: `legacy_macro` could refer to the macro defined here
21 --> $DIR/macro-rules.rs:28:9
23 LL | macro_rules! legacy_macro { () => () }
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 note: `legacy_macro` could also refer to the macro defined here
26 --> $DIR/macro-rules.rs:25:5
28 LL | macro legacy_macro() {}
29 | ^^^^^^^^^^^^^^^^^^^^^^^
30 = help: use `self::legacy_macro` to refer to this macro unambiguously
32 error: aborting due to 2 previous errors
34 Some errors have detailed explanations: E0364, E0659.
35 For more information about an error, try `rustc --explain E0364`.