]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-52891.stderr
Preparing for merge from rustc
[rust.git] / src / test / ui / imports / issue-52891.stderr
1 error[E0252]: the name `a` is defined multiple times
2   --> $DIR/issue-52891.rs:12:5
3    |
4 LL | use issue_52891::a;
5    |     -------------- previous import of the module `a` here
6 LL | use issue_52891::a;
7    |     ^^^^^^^^^^^^^^ `a` reimported here
8    |
9    = note: `a` must be defined only once in the type namespace of this module
10
11 error[E0252]: the name `a` is defined multiple times
12   --> $DIR/issue-52891.rs:14:19
13    |
14 LL | use issue_52891::a;
15    |     -------------- previous import of the module `a` here
16 ...
17 LL | use issue_52891::{a, b, c};
18    |                   ^--
19    |                   |
20    |                   `a` reimported here
21    |                   help: remove unnecessary import
22    |
23    = note: `a` must be defined only once in the type namespace of this module
24
25 error[E0252]: the name `a` is defined multiple times
26   --> $DIR/issue-52891.rs:15:22
27    |
28 LL | use issue_52891::a;
29    |     -------------- previous import of the module `a` here
30 ...
31 LL | use issue_52891::{d, a, e};
32    |                      ^--
33    |                      |
34    |                      `a` reimported here
35    |                      help: remove unnecessary import
36    |
37    = note: `a` must be defined only once in the type namespace of this module
38
39 error[E0252]: the name `a` is defined multiple times
40   --> $DIR/issue-52891.rs:16:25
41    |
42 LL | use issue_52891::a;
43    |     -------------- previous import of the module `a` here
44 ...
45 LL | use issue_52891::{f, g, a};
46    |                         ^ `a` reimported here
47    |
48    = note: `a` must be defined only once in the type namespace of this module
49
50 error[E0252]: the name `a` is defined multiple times
51   --> $DIR/issue-52891.rs:18:19
52    |
53 LL | use issue_52891::a;
54    |     -------------- previous import of the module `a` here
55 ...
56 LL | use issue_52891::{a,
57    |                   ^--
58    |                   |
59    |                   `a` reimported here
60    |                   help: remove unnecessary import
61    |
62    = note: `a` must be defined only once in the type namespace of this module
63
64 error[E0252]: the name `a` is defined multiple times
65   --> $DIR/issue-52891.rs:22:5
66    |
67 LL | use issue_52891::a;
68    |     -------------- previous import of the module `a` here
69 ...
70 LL |     a,
71    |     ^--
72    |     |
73    |     `a` reimported here
74    |     help: remove unnecessary import
75    |
76    = note: `a` must be defined only once in the type namespace of this module
77
78 error[E0252]: the name `a` is defined multiple times
79   --> $DIR/issue-52891.rs:26:5
80    |
81 LL | use issue_52891::a;
82    |     -------------- previous import of the module `a` here
83 ...
84 LL |     a};
85    |     ^ `a` reimported here
86    |
87    = note: `a` must be defined only once in the type namespace of this module
88
89 error[E0252]: the name `inner` is defined multiple times
90   --> $DIR/issue-52891.rs:29:5
91    |
92 LL | use issue_52891::a::inner;
93    |     --------------------- previous import of the module `inner` here
94 LL | use issue_52891::b::inner;
95    |     ^^^^^^^^^^^^^^^^^^^^^ `inner` reimported here
96    |
97    = note: `inner` must be defined only once in the type namespace of this module
98 help: you can use `as` to change the binding name of the import
99    |
100 LL | use issue_52891::b::inner as other_inner;
101    |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
103 error[E0254]: the name `issue_52891` is defined multiple times
104   --> $DIR/issue-52891.rs:31:19
105    |
106 LL | extern crate issue_52891;
107    | ------------------------- previous import of the extern crate `issue_52891` here
108 ...
109 LL | use issue_52891::{self};
110    | ------------------^^^^--
111    | |                 |
112    | |                 `issue_52891` reimported here
113    | help: remove unnecessary import
114    |
115    = note: `issue_52891` must be defined only once in the type namespace of this module
116
117 error[E0252]: the name `n` is defined multiple times
118   --> $DIR/issue-52891.rs:36:5
119    |
120 LL | use issue_52891::n;
121    |     -------------- previous import of the module `n` here
122 LL | #[macro_use]
123 LL | use issue_52891::n;
124    |     ^^^^^^^^^^^^^^ `n` reimported here
125    |
126    = note: `n` must be defined only once in the type namespace of this module
127
128 error: aborting due to 10 previous errors
129
130 Some errors have detailed explanations: E0252, E0254.
131 For more information about an error, try `rustc --explain E0252`.