]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-implicit-prelude.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / no-implicit-prelude.stderr
1 error[E0405]: cannot find trait `Add` in this scope
2   --> $DIR/no-implicit-prelude.rs:20:6
3    |
4 LL | impl Add for Test {} //~ ERROR cannot find trait `Add` in this scope
5    |      ^^^ not found in this scope
6 help: possible candidate is found in another module, you can import it into scope
7    |
8 LL | use std::ops::Add;
9    |
10
11 error[E0405]: cannot find trait `Clone` in this scope
12   --> $DIR/no-implicit-prelude.rs:21:6
13    |
14 LL | impl Clone for Test {} //~ ERROR cannot find trait `Clone` in this scope
15    |      ^^^^^ not found in this scope
16 help: possible candidates are found in other modules, you can import them into scope
17    |
18 LL | use std::clone::Clone;
19    |
20 LL | use std::prelude::v1::Clone;
21    |
22
23 error[E0405]: cannot find trait `Iterator` in this scope
24   --> $DIR/no-implicit-prelude.rs:22:6
25    |
26 LL | impl Iterator for Test {} //~ ERROR cannot find trait `Iterator` in this scope
27    |      ^^^^^^^^ not found in this scope
28 help: possible candidates are found in other modules, you can import them into scope
29    |
30 LL | use std::iter::Iterator;
31    |
32 LL | use std::prelude::v1::Iterator;
33    |
34
35 error[E0405]: cannot find trait `ToString` in this scope
36   --> $DIR/no-implicit-prelude.rs:23:6
37    |
38 LL | impl ToString for Test {} //~ ERROR cannot find trait `ToString` in this scope
39    |      ^^^^^^^^ not found in this scope
40 help: possible candidates are found in other modules, you can import them into scope
41    |
42 LL | use std::prelude::v1::ToString;
43    |
44 LL | use std::string::ToString;
45    |
46
47 error[E0405]: cannot find trait `Writer` in this scope
48   --> $DIR/no-implicit-prelude.rs:24:6
49    |
50 LL | impl Writer for Test {} //~ ERROR cannot find trait `Writer` in this scope
51    |      ^^^^^^ not found in this scope
52
53 error[E0425]: cannot find function `drop` in this scope
54   --> $DIR/no-implicit-prelude.rs:27:5
55    |
56 LL |     drop(2) //~ ERROR cannot find function `drop` in this scope
57    |     ^^^^ not found in this scope
58 help: possible candidates are found in other modules, you can import them into scope
59    |
60 LL | use std::mem::drop;
61    |
62 LL | use std::prelude::v1::drop;
63    |
64
65 error: aborting due to 6 previous errors
66
67 Some errors occurred: E0405, E0425.
68 For more information about an error, try `rustc --explain E0405`.