2018-11-11 11:28:56 -06:00
|
|
|
error[E0364]: `legacy_macro` is private, and cannot be re-exported
|
2018-12-09 12:49:21 -06:00
|
|
|
--> $DIR/macro-rules.rs:11:13
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub use legacy_macro as _;
|
2018-11-11 11:28:56 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: consider marking `legacy_macro` as `pub` in the imported module
|
2018-12-09 12:49:21 -06:00
|
|
|
--> $DIR/macro-rules.rs:11:13
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub use legacy_macro as _;
|
2018-11-11 11:28:56 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0659]: `legacy_macro` is ambiguous (name vs any other name during import resolution)
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/macro-rules.rs:31:13
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use legacy_macro as _;
|
2018-11-11 11:28:56 -06:00
|
|
|
| ^^^^^^^^^^^^ ambiguous name
|
|
|
|
|
|
|
|
|
note: `legacy_macro` could refer to the macro defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/macro-rules.rs:28:9
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
|
|
|
LL | macro_rules! legacy_macro { () => () }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: `legacy_macro` could also refer to the macro defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/macro-rules.rs:25:5
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
|
|
|
LL | macro legacy_macro() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: use `self::legacy_macro` to refer to this macro unambiguously
|
|
|
|
|
2018-12-09 12:49:21 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-11-11 11:28:56 -06:00
|
|
|
|
|
|
|
Some errors occurred: E0364, E0659.
|
|
|
|
For more information about an error, try `rustc --explain E0364`.
|