fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 12 --> $DIR/duplicate.rs:48:15 13 | 14LL | use self::foo::bar; 15 | ^^^ ambiguous name 16 | 17 = note: ambiguous because of multiple glob imports of a name in the same module 18note: `foo` could refer to the module imported here 19 --> $DIR/duplicate.rs:45:9 20 | 21LL | use self::m1::*; 22 | ^^^^^^^^^^^ 23 = help: consider adding an explicit import of `foo` to disambiguate 24note: `foo` could also refer to the module imported here 25 --> $DIR/duplicate.rs:46:9 26 | 27LL | use self::m2::*; 28 | ^^^^^^^^^^^ 29 = help: consider adding an explicit import of `foo` to disambiguate 30 31error[E0659]: `foo` is ambiguous 32 --> $DIR/duplicate.rs:35:8 33 | 34LL | f::foo(); 35 | ^^^ ambiguous name 36 | 37 = note: ambiguous because of multiple glob imports of a name in the same module 38note: `foo` could refer to the function imported here 39 --> $DIR/duplicate.rs:24:13 40 | 41LL | pub use a::*; 42 | ^^^^ 43 = help: consider adding an explicit import of `foo` to disambiguate 44note: `foo` could also refer to the function imported here 45 --> $DIR/duplicate.rs:25:13 46 | 47LL | pub use b::*; 48 | ^^^^ 49 = help: consider adding an explicit import of `foo` to disambiguate 50 51error[E0659]: `foo` is ambiguous 52 --> $DIR/duplicate.rs:51:9 53 | 54LL | foo::bar(); 55 | ^^^ ambiguous name 56 | 57 = note: ambiguous because of multiple glob imports of a name in the same module 58note: `foo` could refer to the module imported here 59 --> $DIR/duplicate.rs:45:9 60 | 61LL | use self::m1::*; 62 | ^^^^^^^^^^^ 63 = help: consider adding an explicit import of `foo` to disambiguate 64note: `foo` could also refer to the module imported here 65 --> $DIR/duplicate.rs:46:9 66 | 67LL | use self::m2::*; 68 | ^^^^^^^^^^^ 69 = help: consider adding an explicit import of `foo` to disambiguate 70 71warning: `foo` is ambiguous 72 --> $DIR/duplicate.rs:36:8 73 | 74LL | g::foo(); 75 | ^^^ ambiguous name 76 | 77 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 78 = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> 79 = note: ambiguous because of multiple glob imports of a name in the same module 80note: `foo` could refer to the function imported here 81 --> $DIR/duplicate.rs:24:13 82 | 83LL | pub use a::*; 84 | ^^^^ 85 = help: consider adding an explicit import of `foo` to disambiguate 86note: `foo` could also refer to the function imported here 87 --> $DIR/duplicate.rs:25:13 88 | 89LL | pub use b::*; 90 | ^^^^ 91 = help: consider adding an explicit import of `foo` to disambiguate 92 = note: `#[warn(ambiguous_glob_imports)]` on by default 93 94error: aborting due to 4 previous errors; 1 warning emitted 95 96Some errors have detailed explanations: E0252, E0659. 97For more information about an error, try `rustc --explain E0252`.