]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/uniform-paths/macro-rules.stderr
be7bbd314df316027358d84d6e44872a217ab306
[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:12: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:12: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:31: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:31: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:42: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:42: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:31: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:28: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:25: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`.