summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-52891.stderr
blob: 7bb1301edf264806ba2eb47a244ff237c6f5b12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:12:5
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
LL | use issue_52891::a;
   |     ^^^^^^^^^^^^^^ `a` reimported here
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:14:19
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL | use issue_52891::{a, b, c};
   |                   ^--
   |                   |
   |                   `a` reimported here
   |                   help: remove unnecessary import
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:15:22
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL | use issue_52891::{d, a, e};
   |                      ^--
   |                      |
   |                      `a` reimported here
   |                      help: remove unnecessary import
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:16:25
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL | use issue_52891::{f, g, a};
   |                         ^ `a` reimported here
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:18:19
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL | use issue_52891::{a,
   |                   ^--
   |                   |
   |                   `a` reimported here
   |                   help: remove unnecessary import
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:22:5
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL |     a,
   |     ^--
   |     |
   |     `a` reimported here
   |     help: remove unnecessary import
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `a` is defined multiple times
  --> $DIR/issue-52891.rs:26:5
   |
LL | use issue_52891::a;
   |     -------------- previous import of the module `a` here
...
LL |     a};
   |     ^ `a` reimported here
   |
   = note: `a` must be defined only once in the type namespace of this module

error[E0252]: the name `inner` is defined multiple times
  --> $DIR/issue-52891.rs:29:5
   |
LL | use issue_52891::a::inner;
   |     --------------------- previous import of the module `inner` here
LL | use issue_52891::b::inner;
   |     ^^^^^^^^^^^^^^^^^^^^^ `inner` reimported here
   |
   = note: `inner` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use issue_52891::b::inner as other_inner;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0254]: the name `issue_52891` is defined multiple times
  --> $DIR/issue-52891.rs:31:19
   |
LL | extern crate issue_52891;
   | ------------------------- previous import of the extern crate `issue_52891` here
...
LL | use issue_52891::{self};
   | ------------------^^^^--
   | |                 |
   | |                 `issue_52891` reimported here
   | help: remove unnecessary import
   |
   = note: `issue_52891` must be defined only once in the type namespace of this module

error[E0252]: the name `n` is defined multiple times
  --> $DIR/issue-52891.rs:36:5
   |
LL | use issue_52891::n;
   |     -------------- previous import of the module `n` here
LL | #[macro_use]
LL | use issue_52891::n;
   |     ^^^^^^^^^^^^^^ `n` reimported here
   |
   = note: `n` must be defined only once in the type namespace of this module

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0252, E0254.
For more information about an error, try `rustc --explain E0252`.