]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-implicit-prelude-nested.stderr
Rollup merge of #71843 - sfackler:cas-loop-cleanup, r=dtolnay
[rust.git] / src / test / ui / no-implicit-prelude-nested.stderr
1 error[E0405]: cannot find trait `Add` in this scope
2   --> $DIR/no-implicit-prelude-nested.rs:11:14
3    |
4 LL |         impl Add for Test {}
5    |              ^^^ not found in this scope
6    |
7 help: consider importing this trait
8    |
9 LL |         use std::ops::Add;
10    |
11
12 error[E0404]: expected trait, found derive macro `Clone`
13   --> $DIR/no-implicit-prelude-nested.rs:12:14
14    |
15 LL |         impl Clone for Test {}
16    |              ^^^^^ not a trait
17    |
18 help: consider importing one of these items instead
19    |
20 LL |         use std::clone::Clone;
21    |
22 LL |         use std::prelude::v1::Clone;
23    |
24
25 error[E0405]: cannot find trait `Iterator` in this scope
26   --> $DIR/no-implicit-prelude-nested.rs:13:14
27    |
28 LL |         impl Iterator for Test {}
29    |              ^^^^^^^^ not found in this scope
30    |
31 help: consider importing one of these items
32    |
33 LL |         use std::iter::Iterator;
34    |
35 LL |         use std::prelude::v1::Iterator;
36    |
37
38 error[E0405]: cannot find trait `ToString` in this scope
39   --> $DIR/no-implicit-prelude-nested.rs:14:14
40    |
41 LL |         impl ToString for Test {}
42    |              ^^^^^^^^ not found in this scope
43    |
44 help: consider importing one of these items
45    |
46 LL |         use std::prelude::v1::ToString;
47    |
48 LL |         use std::string::ToString;
49    |
50
51 error[E0405]: cannot find trait `Writer` in this scope
52   --> $DIR/no-implicit-prelude-nested.rs:15:14
53    |
54 LL |         impl Writer for Test {}
55    |              ^^^^^^ not found in this scope
56
57 error[E0425]: cannot find function `drop` in this scope
58   --> $DIR/no-implicit-prelude-nested.rs:18:13
59    |
60 LL |             drop(2)
61    |             ^^^^ not found in this scope
62    |
63 help: consider importing one of these items
64    |
65 LL |         use std::mem::drop;
66    |
67 LL |         use std::prelude::v1::drop;
68    |
69
70 error[E0405]: cannot find trait `Add` in this scope
71   --> $DIR/no-implicit-prelude-nested.rs:23:10
72    |
73 LL |     impl Add for Test {}
74    |          ^^^ not found in this scope
75    |
76 help: consider importing this trait
77    |
78 LL |     use std::ops::Add;
79    |
80
81 error[E0404]: expected trait, found derive macro `Clone`
82   --> $DIR/no-implicit-prelude-nested.rs:24:10
83    |
84 LL |     impl Clone for Test {}
85    |          ^^^^^ not a trait
86    |
87 help: consider importing one of these items instead
88    |
89 LL |     use std::clone::Clone;
90    |
91 LL |     use std::prelude::v1::Clone;
92    |
93
94 error[E0405]: cannot find trait `Iterator` in this scope
95   --> $DIR/no-implicit-prelude-nested.rs:25:10
96    |
97 LL |     impl Iterator for Test {}
98    |          ^^^^^^^^ not found in this scope
99    |
100 help: consider importing one of these items
101    |
102 LL |     use std::iter::Iterator;
103    |
104 LL |     use std::prelude::v1::Iterator;
105    |
106
107 error[E0405]: cannot find trait `ToString` in this scope
108   --> $DIR/no-implicit-prelude-nested.rs:26:10
109    |
110 LL |     impl ToString for Test {}
111    |          ^^^^^^^^ not found in this scope
112    |
113 help: consider importing one of these items
114    |
115 LL |     use std::prelude::v1::ToString;
116    |
117 LL |     use std::string::ToString;
118    |
119
120 error[E0405]: cannot find trait `Writer` in this scope
121   --> $DIR/no-implicit-prelude-nested.rs:27:10
122    |
123 LL |     impl Writer for Test {}
124    |          ^^^^^^ not found in this scope
125
126 error[E0425]: cannot find function `drop` in this scope
127   --> $DIR/no-implicit-prelude-nested.rs:30:9
128    |
129 LL |         drop(2)
130    |         ^^^^ not found in this scope
131    |
132 help: consider importing one of these items
133    |
134 LL |     use std::mem::drop;
135    |
136 LL |     use std::prelude::v1::drop;
137    |
138
139 error[E0405]: cannot find trait `Add` in this scope
140   --> $DIR/no-implicit-prelude-nested.rs:38:14
141    |
142 LL |         impl Add for Test {}
143    |              ^^^ not found in this scope
144    |
145 help: consider importing this trait
146    |
147 LL |         use std::ops::Add;
148    |
149
150 error[E0404]: expected trait, found derive macro `Clone`
151   --> $DIR/no-implicit-prelude-nested.rs:39:14
152    |
153 LL |         impl Clone for Test {}
154    |              ^^^^^ not a trait
155    |
156 help: consider importing one of these items instead
157    |
158 LL |         use std::clone::Clone;
159    |
160 LL |         use std::prelude::v1::Clone;
161    |
162
163 error[E0405]: cannot find trait `Iterator` in this scope
164   --> $DIR/no-implicit-prelude-nested.rs:40:14
165    |
166 LL |         impl Iterator for Test {}
167    |              ^^^^^^^^ not found in this scope
168    |
169 help: consider importing one of these items
170    |
171 LL |         use std::iter::Iterator;
172    |
173 LL |         use std::prelude::v1::Iterator;
174    |
175
176 error[E0405]: cannot find trait `ToString` in this scope
177   --> $DIR/no-implicit-prelude-nested.rs:41:14
178    |
179 LL |         impl ToString for Test {}
180    |              ^^^^^^^^ not found in this scope
181    |
182 help: consider importing one of these items
183    |
184 LL |         use std::prelude::v1::ToString;
185    |
186 LL |         use std::string::ToString;
187    |
188
189 error[E0405]: cannot find trait `Writer` in this scope
190   --> $DIR/no-implicit-prelude-nested.rs:42:14
191    |
192 LL |         impl Writer for Test {}
193    |              ^^^^^^ not found in this scope
194
195 error[E0425]: cannot find function `drop` in this scope
196   --> $DIR/no-implicit-prelude-nested.rs:45:13
197    |
198 LL |             drop(2)
199    |             ^^^^ not found in this scope
200    |
201 help: consider importing one of these items
202    |
203 LL |         use std::mem::drop;
204    |
205 LL |         use std::prelude::v1::drop;
206    |
207
208 error: aborting due to 18 previous errors
209
210 Some errors have detailed explanations: E0404, E0405, E0425.
211 For more information about an error, try `rustc --explain E0404`.