]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/uniform-paths/macro-rules.stderr
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / rust-2018 / uniform-paths / macro-rules.stderr
1 error[E0364]: `legacy_macro` is private, and cannot be re-exported
2   --> $DIR/macro-rules.rs:11:13
3    |
4 LL |     pub use legacy_macro as _;
5    |             ^^^^^^^^^^^^^^^^^
6    |
7 note: consider marking `legacy_macro` as `pub` in the imported module
8   --> $DIR/macro-rules.rs:11:13
9    |
10 LL |     pub use legacy_macro as _;
11    |             ^^^^^^^^^^^^^^^^^
12
13 error[E0659]: `legacy_macro` is ambiguous
14   --> $DIR/macro-rules.rs:31:13
15    |
16 LL |         use legacy_macro as _;
17    |             ^^^^^^^^^^^^ ambiguous name
18    |
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
22    |
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
27    |
28 LL |     macro legacy_macro() {}
29    |     ^^^^^^^^^^^^^^^^^^^^^^^
30    = help: use `self::legacy_macro` to refer to this macro unambiguously
31
32 error: aborting due to 2 previous errors
33
34 Some errors have detailed explanations: E0364, E0659.
35 For more information about an error, try `rustc --explain E0364`.