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