@@ -16,8 +16,32 @@ LL | let y: long = 74802374902374923;
16
16
| not found in this scope
17
17
| help: perhaps you intended to use this type: `i64`
18
18
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
+
19
43
error[E0412]: cannot find type `boolean` in this scope
20
- --> $DIR/recommend-literal.rs:12 :9
44
+ --> $DIR/recommend-literal.rs:19 :9
21
45
|
22
46
LL | fn z(a: boolean) {
23
47
| ^^^^^^^
@@ -26,7 +50,7 @@ LL | fn z(a: boolean) {
26
50
| help: perhaps you intended to use this type: `bool`
27
51
28
52
error[E0412]: cannot find type `byte` in this scope
29
- --> $DIR/recommend-literal.rs:17 :11
53
+ --> $DIR/recommend-literal.rs:24 :11
30
54
|
31
55
LL | fn a() -> byte {
32
56
| ^^^^
@@ -35,7 +59,7 @@ LL | fn a() -> byte {
35
59
| help: perhaps you intended to use this type: `u8`
36
60
37
61
error[E0412]: cannot find type `float` in this scope
38
- --> $DIR/recommend-literal.rs:24 :12
62
+ --> $DIR/recommend-literal.rs:31 :12
39
63
|
40
64
LL | width: float,
41
65
| ^^^^^
@@ -44,7 +68,7 @@ LL | width: float,
44
68
| help: perhaps you intended to use this type: `f32`
45
69
46
70
error[E0412]: cannot find type `int` in this scope
47
- --> $DIR/recommend-literal.rs:27 :19
71
+ --> $DIR/recommend-literal.rs:34 :19
48
72
|
49
73
LL | depth: Option<int>,
50
74
| ^^^ not found in this scope
@@ -59,14 +83,14 @@ LL | struct Data<int> {
59
83
| +++++
60
84
61
85
error[E0412]: cannot find type `short` in this scope
62
- --> $DIR/recommend-literal.rs:33 :16
86
+ --> $DIR/recommend-literal.rs:40 :16
63
87
|
64
88
LL | impl Stuff for short {}
65
89
| ^^^^^
66
90
| |
67
91
| not found in this scope
68
92
| help: perhaps you intended to use this type: `i16`
69
93
70
- error: aborting due to 7 previous errors
94
+ error: aborting due to 9 previous errors
71
95
72
96
For more information about this error, try `rustc --explain E0412`.
0 commit comments