fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0412]: cannot find type `double` in this scope 2 --> $DIR/recommend-literal.rs:1:13 3 | 4LL | type Real = double; 5 | ^^^^^^ 6 | | 7 | not found in this scope 8 | help: perhaps you intended to use this type: `f64` 9 10error[E0412]: cannot find type `long` in this scope 11 --> $DIR/recommend-literal.rs:7:12 12 | 13LL | let y: long = 74802374902374923; 14 | ^^^^ 15 | | 16 | not found in this scope 17 | help: perhaps you intended to use this type: `i64` 18 19error[E0412]: cannot find type `Boolean` in this scope 20 --> $DIR/recommend-literal.rs:10:13 21 | 22LL | let v1: Boolean = true; 23 | ^^^^^^^ 24 | | 25 | not found in this scope 26 | help: perhaps you intended to use this type: `bool` 27 28error[E0412]: cannot find type `Bool` in this scope 29 --> $DIR/recommend-literal.rs:13:13 30 | 31LL | let v2: Bool = true; 32 | ^^^^ 33 | 34help: a builtin type with a similar name exists 35 | 36LL | let v2: bool = true; 37 | ~~~~ 38help: perhaps you intended to use this type 39 | 40LL | let v2: bool = true; 41 | ~~~~ 42 43error[E0412]: cannot find type `boolean` in this scope 44 --> $DIR/recommend-literal.rs:19:9 45 | 46LL | fn z(a: boolean) { 47 | ^^^^^^^ 48 | | 49 | not found in this scope 50 | help: perhaps you intended to use this type: `bool` 51 52error[E0412]: cannot find type `byte` in this scope 53 --> $DIR/recommend-literal.rs:24:11 54 | 55LL | fn a() -> byte { 56 | ^^^^ 57 | | 58 | not found in this scope 59 | help: perhaps you intended to use this type: `u8` 60 61error[E0412]: cannot find type `float` in this scope 62 --> $DIR/recommend-literal.rs:31:12 63 | 64LL | width: float, 65 | ^^^^^ 66 | | 67 | not found in this scope 68 | help: perhaps you intended to use this type: `f32` 69 70error[E0412]: cannot find type `int` in this scope 71 --> $DIR/recommend-literal.rs:34:19 72 | 73LL | depth: Option<int>, 74 | ^^^ not found in this scope 75 | 76help: perhaps you intended to use this type 77 | 78LL | depth: Option<i32>, 79 | ~~~ 80help: you might be missing a type parameter 81 | 82LL | struct Data<int> { 83 | +++++ 84 85error[E0412]: cannot find type `short` in this scope 86 --> $DIR/recommend-literal.rs:40:16 87 | 88LL | impl Stuff for short {} 89 | ^^^^^ 90 | | 91 | not found in this scope 92 | help: perhaps you intended to use this type: `i16` 93 94error: aborting due to 9 previous errors 95 96For more information about this error, try `rustc --explain E0412`.