]> git.lizzy.rs Git - rust.git/blob - src/test/ui/modules/issue-56411.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / modules / issue-56411.stderr
1 error[E0255]: the name `issue_56411_aux` is defined multiple times
2   --> $DIR/issue-56411.rs:6:21
3    |
4 LL |             mod $name;
5    |             ---------- previous definition of the module `issue_56411_aux` here
6 LL |             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 ...
12 LL | 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 the macro `import` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0365]: `issue_56411_aux` is only public within the crate, and cannot be re-exported outside
19   --> $DIR/issue-56411.rs:6:21
20    |
21 LL |             pub use self::$name;
22    |                     ^^^^^^^^^^^ re-export of crate public `issue_56411_aux`
23 ...
24 LL | 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 the macro `import` (in Nightly builds, run with -Z macro-backtrace for more info)
29
30 error: aborting due to 2 previous errors
31
32 Some errors have detailed explanations: E0255, E0365.
33 For more information about an error, try `rustc --explain E0255`.