2017-12-10 13:47:55 -06:00
|
|
|
error[E0252]: the name `foo` is defined multiple times
|
|
|
|
--> $DIR/duplicate.rs:25:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use a::foo;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------ previous import of the value `foo` here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use a::foo; //~ ERROR the name `foo` is defined multiple times
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^ `foo` reimported here
|
|
|
|
|
|
|
|
|
= note: `foo` must be defined only once in the value namespace of this module
|
2018-10-16 18:21:40 -05:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use a::foo as other_foo; //~ ERROR the name `foo` is defined multiple times
|
2018-01-28 19:48:54 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
|
2018-09-07 18:51:20 -05:00
|
|
|
--> $DIR/duplicate.rs:56:15
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use self::foo::bar; //~ ERROR `foo` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `foo` could refer to the module imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:53:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use self::m1::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
note: `foo` could also refer to the module imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:54:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use self::m2::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
|
2018-09-07 18:51:20 -05:00
|
|
|
--> $DIR/duplicate.rs:45:8
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | f::foo(); //~ ERROR `foo` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `foo` could refer to the function imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:34:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub use a::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
note: `foo` could also refer to the function imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:35:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub use b::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
|
2018-09-07 18:51:20 -05:00
|
|
|
--> $DIR/duplicate.rs:46:8
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | g::foo(); //~ ERROR `foo` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `foo` could refer to the function imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:39:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub use a::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
note: `foo` could also refer to the unresolved item imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:40:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub use f::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:59:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::bar(); //~ ERROR `foo` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `foo` could refer to the module imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:53:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use self::m1::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
note: `foo` could also refer to the module imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/duplicate.rs:54:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use self::m2::*;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `foo` to disambiguate
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
Some errors occurred: E0252, E0659.
|
|
|
|
For more information about an error, try `rustc --explain E0252`.
|