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