fork/rust

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

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

1.39.0
1.9 KiB68 linesraw
1error[E0405]: cannot find trait `Add` in this scope
2  --> $DIR/no-implicit-prelude.rs:10:6
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.rs:11:6
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.rs:12:6
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.rs:13:6
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.rs:14:6
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.rs:17:5
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: aborting due to 6 previous errors
66
67Some errors have detailed explanations: E0404, E0405, E0425.
68For more information about an error, try `rustc --explain E0404`.