fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0252]: the name `foo` is defined multiple times 2 --> $DIR/duplicate.rs:15:9 3 | 4LL | use a::foo; 5 | ------ previous import of the value `foo` here 6LL | use a::foo; 7 | ^^^^^^ `foo` reimported here 8 | 9 = note: `foo` must be defined only once in the value namespace of this module 10 11error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module) 12 --> $DIR/duplicate.rs:46:15 13 | 14LL | use self::foo::bar; 15 | ^^^ ambiguous name 16 | 17note: `foo` could refer to the module imported here 18 --> $DIR/duplicate.rs:43:9 19 | 20LL | use self::m1::*; 21 | ^^^^^^^^^^^ 22 = help: consider adding an explicit import of `foo` to disambiguate 23note: `foo` could also refer to the module imported here 24 --> $DIR/duplicate.rs:44:9 25 | 26LL | use self::m2::*; 27 | ^^^^^^^^^^^ 28 = help: consider adding an explicit import of `foo` to disambiguate 29 30error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module) 31 --> $DIR/duplicate.rs:35:8 32 | 33LL | f::foo(); 34 | ^^^ ambiguous name 35 | 36note: `foo` could refer to the function imported here 37 --> $DIR/duplicate.rs:24:13 38 | 39LL | pub use a::*; 40 | ^^^^ 41 = help: consider adding an explicit import of `foo` to disambiguate 42note: `foo` could also refer to the function imported here 43 --> $DIR/duplicate.rs:25:13 44 | 45LL | pub use b::*; 46 | ^^^^ 47 = help: consider adding an explicit import of `foo` to disambiguate 48 49error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module) 50 --> $DIR/duplicate.rs:49:9 51 | 52LL | foo::bar(); 53 | ^^^ ambiguous name 54 | 55note: `foo` could refer to the module imported here 56 --> $DIR/duplicate.rs:43:9 57 | 58LL | use self::m1::*; 59 | ^^^^^^^^^^^ 60 = help: consider adding an explicit import of `foo` to disambiguate 61note: `foo` could also refer to the module imported here 62 --> $DIR/duplicate.rs:44:9 63 | 64LL | use self::m2::*; 65 | ^^^^^^^^^^^ 66 = help: consider adding an explicit import of `foo` to disambiguate 67 68error: aborting due to 4 previous errors 69 70Some errors have detailed explanations: E0252, E0659. 71For more information about an error, try `rustc --explain E0252`.