fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
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 6 | 7help: possible candidate is found in another module, you can import it into scope 8 | 9LL | use std::ops::Add; 10 | 11 12error[E0404]: expected trait, found derive macro `Clone` 13 --> $DIR/no-implicit-prelude.rs:11:6 14 | 15LL | impl Clone for Test {} 16 | ^^^^^ not a trait 17 | 18help: possible better candidates are found in other modules, you can import them into scope 19 | 20LL | use std::clone::Clone; 21 | 22LL | use std::prelude::v1::Clone; 23 | 24 25error[E0405]: cannot find trait `Iterator` in this scope 26 --> $DIR/no-implicit-prelude.rs:12:6 27 | 28LL | impl Iterator for Test {} 29 | ^^^^^^^^ not found in this scope 30 | 31help: possible candidates are found in other modules, you can import them into scope 32 | 33LL | use std::iter::Iterator; 34 | 35LL | use std::prelude::v1::Iterator; 36 | 37 38error[E0405]: cannot find trait `ToString` in this scope 39 --> $DIR/no-implicit-prelude.rs:13:6 40 | 41LL | impl ToString for Test {} 42 | ^^^^^^^^ not found in this scope 43 | 44help: possible candidates are found in other modules, you can import them into scope 45 | 46LL | use std::prelude::v1::ToString; 47 | 48LL | use std::string::ToString; 49 | 50 51error[E0405]: cannot find trait `Writer` in this scope 52 --> $DIR/no-implicit-prelude.rs:14:6 53 | 54LL | impl Writer for Test {} 55 | ^^^^^^ not found in this scope 56 57error[E0425]: cannot find function `drop` in this scope 58 --> $DIR/no-implicit-prelude.rs:17:5 59 | 60LL | drop(2) 61 | ^^^^ not found in this scope 62 | 63help: possible candidates are found in other modules, you can import them into scope 64 | 65LL | use std::mem::drop; 66 | 67LL | use std::prelude::v1::drop; 68 | 69 70error: aborting due to 6 previous errors 71 72Some errors have detailed explanations: E0404, E0405, E0425. 73For more information about an error, try `rustc --explain E0404`.