2019-01-25 15:36:50 -06:00
|
|
|
error[E0255]: the name `issue_56411_aux` is defined multiple times
|
2019-03-11 19:49:17 -05:00
|
|
|
--> $DIR/issue-56411.rs:6:21
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
|
LL | mod $name;
|
2019-01-25 15:36:50 -06:00
|
|
|
| ---------- previous definition of the module `issue_56411_aux` here
|
2018-12-17 19:22:08 -06:00
|
|
|
LL | pub use self::$name;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
| |
|
2019-01-25 15:36:50 -06:00
|
|
|
| `issue_56411_aux` reimported here
|
2018-12-17 19:22:08 -06:00
|
|
|
| you can use `as` to change the binding name of the import
|
|
|
|
...
|
2019-03-11 19:49:17 -05:00
|
|
|
LL | import!(("issue-56411-aux.rs", issue_56411_aux));
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------------------------------------------------ in this macro invocation
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
2019-01-25 15:36:50 -06:00
|
|
|
= note: `issue_56411_aux` must be defined only once in the type namespace of this module
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `import` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-12-17 19:22:08 -06:00
|
|
|
|
2021-11-05 14:43:55 -05:00
|
|
|
error[E0365]: `issue_56411_aux` is only public within the crate, and cannot be re-exported outside
|
2019-03-11 19:49:17 -05:00
|
|
|
--> $DIR/issue-56411.rs:6:21
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
|
LL | pub use self::$name;
|
2021-11-05 14:43:55 -05:00
|
|
|
| ^^^^^^^^^^^ re-export of crate public `issue_56411_aux`
|
2018-12-17 19:22:08 -06:00
|
|
|
...
|
2019-03-11 19:49:17 -05:00
|
|
|
LL | import!(("issue-56411-aux.rs", issue_56411_aux));
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------------------------------------------------ in this macro invocation
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
2019-01-25 15:36:50 -06:00
|
|
|
= note: consider declaring type or module `issue_56411_aux` with `pub`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `import` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0255, E0365.
|
2018-12-17 19:22:08 -06:00
|
|
|
For more information about an error, try `rustc --explain E0255`.
|