1 error[E0252]: the name `foo` is defined multiple times
2 --> $DIR/duplicate.rs:25:9
5 | ------ previous import of the value `foo` here
6 LL | use a::foo; //~ ERROR the name `foo` is defined multiple times
7 | ^^^^^^ `foo` reimported here
9 = note: `foo` must be defined only once in the value namespace of this module
10 help: You can use `as` to change the binding name of the import
12 LL | use a::foo as other_foo; //~ ERROR the name `foo` is defined multiple times
15 error[E0659]: `foo` is ambiguous
16 --> $DIR/duplicate.rs:56:15
18 LL | use self::foo::bar; //~ ERROR `foo` is ambiguous
21 note: `foo` could refer to the name imported here
22 --> $DIR/duplicate.rs:53:9
26 note: `foo` could also refer to the name imported here
27 --> $DIR/duplicate.rs:54:9
31 = note: consider adding an explicit import of `foo` to disambiguate
33 error[E0659]: `foo` is ambiguous
34 --> $DIR/duplicate.rs:45:8
36 LL | f::foo(); //~ ERROR `foo` is ambiguous
39 note: `foo` could refer to the name imported here
40 --> $DIR/duplicate.rs:34:13
44 note: `foo` could also refer to the name imported here
45 --> $DIR/duplicate.rs:35:13
49 = note: consider adding an explicit import of `foo` to disambiguate
51 error[E0659]: `foo` is ambiguous
52 --> $DIR/duplicate.rs:46:8
54 LL | g::foo(); //~ ERROR `foo` is ambiguous
57 note: `foo` could refer to the name imported here
58 --> $DIR/duplicate.rs:39:13
62 note: `foo` could also refer to the name imported here
63 --> $DIR/duplicate.rs:40:13
67 = note: consider adding an explicit import of `foo` to disambiguate
69 error[E0659]: `foo` is ambiguous
70 --> $DIR/duplicate.rs:59:9
72 LL | foo::bar(); //~ ERROR `foo` is ambiguous
75 note: `foo` could refer to the name imported here
76 --> $DIR/duplicate.rs:53:9
80 note: `foo` could also refer to the name imported here
81 --> $DIR/duplicate.rs:54:9
85 = note: consider adding an explicit import of `foo` to disambiguate
87 error: aborting due to 5 previous errors
89 Some errors occurred: E0252, E0659.
90 For more information about an error, try `rustc --explain E0252`.