fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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