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