]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/duplicate.stderr
Revert "rustc: Fix (again) simd vectors by-val in ABI"
[rust.git] / src / test / ui / imports / duplicate.stderr
1 error[E0252]: the name `foo` is defined multiple times
2   --> $DIR/duplicate.rs:25:9
3    |
4 LL |     use a::foo;
5    |         ------ previous import of the value `foo` here
6 LL |     use a::foo; //~ ERROR the name `foo` is defined multiple times
7    |         ^^^^^^ `foo` reimported here
8    |
9    = note: `foo` must be defined only once in the value namespace of this module
10 help: You can use `as` to change the binding name of the import
11    |
12 LL |     use a::foo as other_foo; //~ ERROR the name `foo` is defined multiple times
13    |         ^^^^^^^^^^^^^^^^^^^
14
15 error[E0659]: `foo` is ambiguous
16   --> $DIR/duplicate.rs:56:15
17    |
18 LL |     use self::foo::bar; //~ ERROR `foo` is ambiguous
19    |               ^^^ ambiguous name
20    |
21 note: `foo` could refer to the name imported here
22   --> $DIR/duplicate.rs:53:9
23    |
24 LL |     use self::m1::*;
25    |         ^^^^^^^^^^^
26 note: `foo` could also refer to the name imported here
27   --> $DIR/duplicate.rs:54:9
28    |
29 LL |     use self::m2::*;
30    |         ^^^^^^^^^^^
31    = note: consider adding an explicit import of `foo` to disambiguate
32
33 error[E0659]: `foo` is ambiguous
34   --> $DIR/duplicate.rs:45:8
35    |
36 LL |     f::foo(); //~ ERROR `foo` is ambiguous
37    |        ^^^ ambiguous name
38    |
39 note: `foo` could refer to the name imported here
40   --> $DIR/duplicate.rs:34:13
41    |
42 LL |     pub use a::*;
43    |             ^^^^
44 note: `foo` could also refer to the name imported here
45   --> $DIR/duplicate.rs:35:13
46    |
47 LL |     pub use b::*;
48    |             ^^^^
49    = note: consider adding an explicit import of `foo` to disambiguate
50
51 error[E0659]: `foo` is ambiguous
52   --> $DIR/duplicate.rs:46:8
53    |
54 LL |     g::foo(); //~ ERROR `foo` is ambiguous
55    |        ^^^ ambiguous name
56    |
57 note: `foo` could refer to the name imported here
58   --> $DIR/duplicate.rs:39:13
59    |
60 LL |     pub use a::*;
61    |             ^^^^
62 note: `foo` could also refer to the name imported here
63   --> $DIR/duplicate.rs:40:13
64    |
65 LL |     pub use f::*;
66    |             ^^^^
67    = note: consider adding an explicit import of `foo` to disambiguate
68
69 error[E0659]: `foo` is ambiguous
70   --> $DIR/duplicate.rs:59:9
71    |
72 LL |         foo::bar(); //~ ERROR `foo` is ambiguous
73    |         ^^^ ambiguous name
74    |
75 note: `foo` could refer to the name imported here
76   --> $DIR/duplicate.rs:53:9
77    |
78 LL |     use self::m1::*;
79    |         ^^^^^^^^^^^
80 note: `foo` could also refer to the name imported here
81   --> $DIR/duplicate.rs:54:9
82    |
83 LL |     use self::m2::*;
84    |         ^^^^^^^^^^^
85    = note: consider adding an explicit import of `foo` to disambiguate
86
87 error: aborting due to 5 previous errors
88
89 Some errors occurred: E0252, E0659.
90 For more information about an error, try `rustc --explain E0252`.