fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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