]> git.proxmox.com Git - rustc.git/blob - src/test/ui/imports/duplicate.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / imports / duplicate.stderr
1 error[E0252]: the name `foo` is defined multiple times
2 --> $DIR/duplicate.rs:15:9
3 |
4 LL | use a::foo;
5 | ------ previous import of the value `foo` here
6 LL | use a::foo;
7 | ^^^^^^ `foo` reimported here
8 |
9 = note: `foo` must be defined only once in the value namespace of this module
10
11 error[E0659]: `foo` is ambiguous
12 --> $DIR/duplicate.rs:46:15
13 |
14 LL | use self::foo::bar;
15 | ^^^ ambiguous name
16 |
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
20 |
21 LL | use self::m1::*;
22 | ^^^^^^^^^^^
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
26 |
27 LL | use self::m2::*;
28 | ^^^^^^^^^^^
29 = help: consider adding an explicit import of `foo` to disambiguate
30
31 error[E0659]: `foo` is ambiguous
32 --> $DIR/duplicate.rs:35:8
33 |
34 LL | f::foo();
35 | ^^^ ambiguous name
36 |
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
40 |
41 LL | pub use a::*;
42 | ^^^^
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
46 |
47 LL | pub use b::*;
48 | ^^^^
49 = help: consider adding an explicit import of `foo` to disambiguate
50
51 error[E0659]: `foo` is ambiguous
52 --> $DIR/duplicate.rs:49:9
53 |
54 LL | foo::bar();
55 | ^^^ ambiguous name
56 |
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
60 |
61 LL | use self::m1::*;
62 | ^^^^^^^^^^^
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
66 |
67 LL | use self::m2::*;
68 | ^^^^^^^^^^^
69 = help: consider adding an explicit import of `foo` to disambiguate
70
71 error: aborting due to 4 previous errors
72
73 Some errors have detailed explanations: E0252, E0659.
74 For more information about an error, try `rustc --explain E0252`.