]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binding/ambiguity-item.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / binding / ambiguity-item.stderr
1 error[E0659]: `f` is ambiguous
2 --> $DIR/ambiguity-item.rs:14:13
3 |
4 LL | let v = f;
5 | ^ ambiguous name
6 |
7 = note: ambiguous because of multiple glob imports of a name in the same module
8 note: `f` could refer to the function imported here
9 --> $DIR/ambiguity-item.rs:6:5
10 |
11 LL | use m::*;
12 | ^^^^
13 = help: consider adding an explicit import of `f` to disambiguate
14 note: `f` could also refer to the function imported here
15 --> $DIR/ambiguity-item.rs:11:5
16 |
17 LL | use n::*; // OK, no conflict with `use m::*;`
18 | ^^^^
19 = help: consider adding an explicit import of `f` to disambiguate
20
21 error[E0659]: `f` is ambiguous
22 --> $DIR/ambiguity-item.rs:16:9
23 |
24 LL | f => {}
25 | ^ ambiguous name
26 |
27 = note: ambiguous because of multiple glob imports of a name in the same module
28 note: `f` could refer to the function imported here
29 --> $DIR/ambiguity-item.rs:6:5
30 |
31 LL | use m::*;
32 | ^^^^
33 = help: consider adding an explicit import of `f` to disambiguate
34 note: `f` could also refer to the function imported here
35 --> $DIR/ambiguity-item.rs:11:5
36 |
37 LL | use n::*; // OK, no conflict with `use m::*;`
38 | ^^^^
39 = help: consider adding an explicit import of `f` to disambiguate
40
41 error: aborting due to 2 previous errors
42
43 For more information about this error, try `rustc --explain E0659`.