@@ -16,8 +16,32 @@ LL | let y: long = 74802374902374923;
1616 | not found in this scope
1717 | help: perhaps you intended to use this type: `i64`
1818
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+
1943error[E0412]: cannot find type `boolean` in this scope
20- --> $DIR/recommend-literal.rs:12 :9
44+ --> $DIR/recommend-literal.rs:19 :9
2145 |
2246LL | fn z(a: boolean) {
2347 | ^^^^^^^
@@ -26,7 +50,7 @@ LL | fn z(a: boolean) {
2650 | help: perhaps you intended to use this type: `bool`
2751
2852error[E0412]: cannot find type `byte` in this scope
29- --> $DIR/recommend-literal.rs:17 :11
53+ --> $DIR/recommend-literal.rs:24 :11
3054 |
3155LL | fn a() -> byte {
3256 | ^^^^
@@ -35,7 +59,7 @@ LL | fn a() -> byte {
3559 | help: perhaps you intended to use this type: `u8`
3660
3761error[E0412]: cannot find type `float` in this scope
38- --> $DIR/recommend-literal.rs:24 :12
62+ --> $DIR/recommend-literal.rs:31 :12
3963 |
4064LL | width: float,
4165 | ^^^^^
@@ -44,7 +68,7 @@ LL | width: float,
4468 | help: perhaps you intended to use this type: `f32`
4569
4670error[E0412]: cannot find type `int` in this scope
47- --> $DIR/recommend-literal.rs:27 :19
71+ --> $DIR/recommend-literal.rs:34 :19
4872 |
4973LL | depth: Option<int>,
5074 | ^^^ not found in this scope
@@ -59,14 +83,14 @@ LL | struct Data<int> {
5983 | +++++
6084
6185error[E0412]: cannot find type `short` in this scope
62- --> $DIR/recommend-literal.rs:33 :16
86+ --> $DIR/recommend-literal.rs:40 :16
6387 |
6488LL | impl Stuff for short {}
6589 | ^^^^^
6690 | |
6791 | not found in this scope
6892 | help: perhaps you intended to use this type: `i16`
6993
70- error: aborting due to 7 previous errors
94+ error: aborting due to 9 previous errors
7195
7296For more information about this error, try `rustc --explain E0412`.
0 commit comments