2017-12-10 22:47:55 +03:00
|
|
|
error[E0252]: the name `foo` is defined multiple times
|
|
|
|
--> $DIR/duplicate.rs:25:9
|
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
24 | use a::foo;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ------ previous import of the value `foo` here
|
|
|
|
25 | use a::foo; //~ ERROR the name `foo` is defined multiple times
|
|
|
|
| ^^^^^^ `foo` reimported here
|
|
|
|
|
|
|
|
|
= note: `foo` must be defined only once in the value namespace of this module
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
|
|
|
25 | use a::foo as Otherfoo; //~ ERROR the name `foo` is defined multiple times
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-01-17 00:00:17 +01:00
|
|
|
error[E0659]: `foo` is ambiguous
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:56:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
56 | use self::foo::bar; //~ ERROR `foo` is ambiguous
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: `foo` could refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:53:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
53 | use self::m1::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `foo` could also refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:54:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
54 | use self::m2::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
= note: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
|
2018-01-17 00:00:17 +01:00
|
|
|
error[E0659]: `foo` is ambiguous
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:45:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
45 | f::foo(); //~ ERROR `foo` is ambiguous
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
note: `foo` could refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:34:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
34 | pub use a::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^
|
|
|
|
note: `foo` could also refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:35:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
35 | pub use b::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^
|
|
|
|
= note: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
|
2018-01-17 00:00:17 +01:00
|
|
|
error[E0659]: `foo` is ambiguous
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:46:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
46 | g::foo(); //~ ERROR `foo` is ambiguous
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
note: `foo` could refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:39:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
39 | pub use a::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^
|
|
|
|
note: `foo` could also refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:40:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
40 | pub use f::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^
|
|
|
|
= note: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
|
2018-01-17 00:00:17 +01:00
|
|
|
error[E0659]: `foo` is ambiguous
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:59:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
59 | foo::bar(); //~ ERROR `foo` is ambiguous
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: `foo` could refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:53:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
53 | use self::m1::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `foo` could also refer to the name imported here
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/duplicate.rs:54:9
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
54 | use self::m2::*;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
= note: consider adding an explicit import of `foo` to disambiguate
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|