2019-01-25 15:36:50 -06:00
|
|
|
error[E0255]: the name `issue_56411_aux` is defined multiple times
|
2018-12-17 19:22:08 -06:00
|
|
|
--> $DIR/issue-56411.rs:5:21
|
|
|
|
|
|
|
|
|
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-01-25 15:36:50 -06:00
|
|
|
LL | import!(issue_56411_aux);
|
|
|
|
| ------------------------- 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
|
2018-12-17 19:22:08 -06:00
|
|
|
|
2019-01-25 15:36:50 -06:00
|
|
|
error[E0365]: `issue_56411_aux` is private, and cannot be re-exported
|
2018-12-17 19:22:08 -06:00
|
|
|
--> $DIR/issue-56411.rs:5:21
|
|
|
|
|
|
|
|
|
LL | pub use self::$name;
|
2019-01-25 15:36:50 -06:00
|
|
|
| ^^^^^^^^^^^ re-export of private `issue_56411_aux`
|
2018-12-17 19:22:08 -06:00
|
|
|
...
|
2019-01-25 15:36:50 -06:00
|
|
|
LL | import!(issue_56411_aux);
|
|
|
|
| ------------------------- 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`
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0255, E0365.
|
|
|
|
For more information about an error, try `rustc --explain E0255`.
|