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