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 (glob import vs glob import in the same module)
12 --> $DIR/duplicate.rs:46:15
14 LL | use self::foo::bar;
17 note: `foo` could refer to the module imported here
18 --> $DIR/duplicate.rs:43:9
22 = help: consider adding an explicit import of `foo` to disambiguate
23 note: `foo` could also refer to the module imported here
24 --> $DIR/duplicate.rs:44:9
28 = help: consider adding an explicit import of `foo` to disambiguate
30 error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
31 --> $DIR/duplicate.rs:35:8
36 note: `foo` could refer to the function imported here
37 --> $DIR/duplicate.rs:24:13
41 = help: consider adding an explicit import of `foo` to disambiguate
42 note: `foo` could also refer to the function imported here
43 --> $DIR/duplicate.rs:25:13
47 = help: consider adding an explicit import of `foo` to disambiguate
49 error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
50 --> $DIR/duplicate.rs:49:9
55 note: `foo` could refer to the module imported here
56 --> $DIR/duplicate.rs:43:9
60 = help: consider adding an explicit import of `foo` to disambiguate
61 note: `foo` could also refer to the module imported here
62 --> $DIR/duplicate.rs:44:9
66 = help: consider adding an explicit import of `foo` to disambiguate
68 error: aborting due to 4 previous errors
70 Some errors have detailed explanations: E0252, E0659.
71 For more information about an error, try `rustc --explain E0252`.