]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/no-implicit-prelude.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / no-implicit-prelude.stderr
1 error[E0405]: cannot find trait `Add` in this scope
2   --> $DIR/no-implicit-prelude.rs:10:6
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.rs:11:6
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.rs:12:6
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.rs:13:6
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.rs:14:6
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.rs:17:5
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: aborting due to 6 previous errors
63
64 Some errors have detailed explanations: E0404, E0405, E0425.
65 For more information about an error, try `rustc --explain E0404`.