1 error[E0252]: the name `foo` is defined multiple times
2 --> $DIR/duplicate.rs:15:9
5 | ------ previous import of the value `foo` here
7 | ^^^^^^ `foo` reimported here
9 = note: `foo` must be defined only once in the value namespace of this module
11 error[E0659]: `foo` is ambiguous
12 --> $DIR/duplicate.rs:46:15
14 LL | use self::foo::bar;
17 = note: ambiguous because of multiple glob imports of a name in the same module
18 note: `foo` could refer to the module imported here
19 --> $DIR/duplicate.rs:43:9
23 = help: consider adding an explicit import of `foo` to disambiguate
24 note: `foo` could also refer to the module imported here
25 --> $DIR/duplicate.rs:44:9
29 = help: consider adding an explicit import of `foo` to disambiguate
31 error[E0659]: `foo` is ambiguous
32 --> $DIR/duplicate.rs:35:8
37 = note: ambiguous because of multiple glob imports of a name in the same module
38 note: `foo` could refer to the function imported here
39 --> $DIR/duplicate.rs:24:13
43 = help: consider adding an explicit import of `foo` to disambiguate
44 note: `foo` could also refer to the function imported here
45 --> $DIR/duplicate.rs:25:13
49 = help: consider adding an explicit import of `foo` to disambiguate
51 error[E0659]: `foo` is ambiguous
52 --> $DIR/duplicate.rs:49:9
57 = note: ambiguous because of multiple glob imports of a name in the same module
58 note: `foo` could refer to the module imported here
59 --> $DIR/duplicate.rs:43:9
63 = help: consider adding an explicit import of `foo` to disambiguate
64 note: `foo` could also refer to the module imported here
65 --> $DIR/duplicate.rs:44:9
69 = help: consider adding an explicit import of `foo` to disambiguate
71 error: aborting due to 4 previous errors
73 Some errors have detailed explanations: E0252, E0659.
74 For more information about an error, try `rustc --explain E0252`.