fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.5 KiB33 linesraw
1error[E0255]: the name `issue_56411_aux` is defined multiple times
2  --> $DIR/issue-56411.rs:6:21
3   |
4LL |             mod $name;
5   |             ---------- previous definition of the module `issue_56411_aux` here
6LL |             pub use self::$name;
7   |                     ^^^^^^^^^^^
8   |                     |
9   |                     `issue_56411_aux` reimported here
10   |                     you can use `as` to change the binding name of the import
11...
12LL | import!(("issue-56411-aux.rs", issue_56411_aux));
13   | ------------------------------------------------- in this macro invocation
14   |
15   = note: `issue_56411_aux` must be defined only once in the type namespace of this module
16   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
18error[E0365]: `issue_56411_aux` is private, and cannot be re-exported
19  --> $DIR/issue-56411.rs:6:21
20   |
21LL |             pub use self::$name;
22   |                     ^^^^^^^^^^^ re-export of private `issue_56411_aux`
23...
24LL | import!(("issue-56411-aux.rs", issue_56411_aux));
25   | ------------------------------------------------- in this macro invocation
26   |
27   = note: consider declaring type or module `issue_56411_aux` with `pub`
28   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
29
30error: aborting due to 2 previous errors
31
32Some errors have detailed explanations: E0255, E0365.
33For more information about an error, try `rustc --explain E0255`.