]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/duplicate.stderr
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.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 (glob import vs glob import in the same module)
12   --> $DIR/duplicate.rs:46:15
13    |
14 LL |     use self::foo::bar;
15    |               ^^^ ambiguous name
16    |
17 note: `foo` could refer to the module imported here
18   --> $DIR/duplicate.rs:43:9
19    |
20 LL |     use self::m1::*;
21    |         ^^^^^^^^^^^
22    = help: consider adding an explicit import of `foo` to disambiguate
23 note: `foo` could also refer to the module imported here
24   --> $DIR/duplicate.rs:44:9
25    |
26 LL |     use self::m2::*;
27    |         ^^^^^^^^^^^
28    = help: consider adding an explicit import of `foo` to disambiguate
29
30 error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
31   --> $DIR/duplicate.rs:35:8
32    |
33 LL |     f::foo();
34    |        ^^^ ambiguous name
35    |
36 note: `foo` could refer to the function imported here
37   --> $DIR/duplicate.rs:24:13
38    |
39 LL |     pub use a::*;
40    |             ^^^^
41    = help: consider adding an explicit import of `foo` to disambiguate
42 note: `foo` could also refer to the function imported here
43   --> $DIR/duplicate.rs:25:13
44    |
45 LL |     pub use b::*;
46    |             ^^^^
47    = help: consider adding an explicit import of `foo` to disambiguate
48
49 error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module)
50   --> $DIR/duplicate.rs:49:9
51    |
52 LL |         foo::bar();
53    |         ^^^ ambiguous name
54    |
55 note: `foo` could refer to the module imported here
56   --> $DIR/duplicate.rs:43:9
57    |
58 LL |     use self::m1::*;
59    |         ^^^^^^^^^^^
60    = help: consider adding an explicit import of `foo` to disambiguate
61 note: `foo` could also refer to the module imported here
62   --> $DIR/duplicate.rs:44:9
63    |
64 LL |     use self::m2::*;
65    |         ^^^^^^^^^^^
66    = help: consider adding an explicit import of `foo` to disambiguate
67
68 error: aborting due to 4 previous errors
69
70 Some errors have detailed explanations: E0252, E0659.
71 For more information about an error, try `rustc --explain E0252`.