2019-01-29 06:34:40 -06:00
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:12:5
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::a;
|
2019-03-10 22:05:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^ `a` reimported here
|
2019-01-29 06:34:40 -06:00
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:14:19
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::{a, b, c};
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| `a` reimported here
|
|
|
|
| help: remove unnecessary import
|
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:15:22
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::{d, a, e};
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| `a` reimported here
|
|
|
|
| help: remove unnecessary import
|
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:16:25
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::{f, g, a};
|
2019-03-11 00:25:23 -05:00
|
|
|
| ^ `a` reimported here
|
2019-01-29 06:34:40 -06:00
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:18:19
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::{a,
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| `a` reimported here
|
|
|
|
| help: remove unnecessary import
|
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:22:5
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | a,
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| `a` reimported here
|
|
|
|
| help: remove unnecessary import
|
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `a` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:26:5
|
|
|
|
|
|
2019-03-11 00:25:23 -05:00
|
|
|
LL | use issue_52891::a;
|
|
|
|
| -------------- previous import of the module `a` here
|
2019-01-29 06:34:40 -06:00
|
|
|
...
|
2019-03-11 00:25:23 -05:00
|
|
|
LL | a};
|
|
|
|
| ^ `a` reimported here
|
2019-01-29 06:34:40 -06:00
|
|
|
|
|
|
|
|
= note: `a` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `inner` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:29:5
|
|
|
|
|
|
|
|
|
LL | use issue_52891::a::inner;
|
|
|
|
| --------------------- previous import of the module `inner` here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::b::inner;
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ `inner` reimported here
|
|
|
|
|
|
|
|
|
= note: `inner` must be defined only once in the type namespace of this module
|
|
|
|
help: you can use `as` to change the binding name of the import
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::b::inner as other_inner;
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2019-01-29 06:34:40 -06:00
|
|
|
|
|
|
|
error[E0254]: the name `issue_52891` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:31:19
|
|
|
|
|
|
|
|
|
LL | extern crate issue_52891;
|
|
|
|
| ------------------------- previous import of the extern crate `issue_52891` here
|
|
|
|
...
|
|
|
|
LL | use issue_52891::{self};
|
|
|
|
| ------------------^^^^--
|
|
|
|
| | |
|
|
|
|
| | `issue_52891` reimported here
|
|
|
|
| help: remove unnecessary import
|
|
|
|
|
|
|
|
|
= note: `issue_52891` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error[E0252]: the name `n` is defined multiple times
|
|
|
|
--> $DIR/issue-52891.rs:36:5
|
|
|
|
|
|
|
|
|
LL | use issue_52891::n;
|
2019-03-10 22:05:01 -05:00
|
|
|
| -------------- previous import of the module `n` here
|
2019-01-29 06:34:40 -06:00
|
|
|
LL | #[macro_use]
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use issue_52891::n;
|
2019-01-29 06:34:40 -06:00
|
|
|
| ^^^^^^^^^^^^^^ `n` reimported here
|
|
|
|
|
|
|
|
|
= note: `n` must be defined only once in the type namespace of this module
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0252, E0254.
|
2019-01-29 06:34:40 -06:00
|
|
|
For more information about an error, try `rustc --explain E0252`.
|