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