11error[E0425]: cannot find type `double` in this scope
2- --> $DIR/recommend-literal.rs:3 :13
2+ --> $DIR/recommend-literal.rs:1 :13
33 |
44LL | type Real = double;
55 | ^^^^^^
@@ -8,7 +8,7 @@ LL | type Real = double;
88 | help: perhaps you intended to use this type: `f64`
99
1010error[E0425]: cannot find type `long` in this scope
11- --> $DIR/recommend-literal.rs:9 :12
11+ --> $DIR/recommend-literal.rs:7 :12
1212 |
1313LL | let y: long = 74802374902374923;
1414 | ^^^^
@@ -17,7 +17,7 @@ LL | let y: long = 74802374902374923;
1717 | help: perhaps you intended to use this type: `i64`
1818
1919error[E0425]: cannot find type `Boolean` in this scope
20- --> $DIR/recommend-literal.rs:12 :13
20+ --> $DIR/recommend-literal.rs:10 :13
2121 |
2222LL | let v1: Boolean = true;
2323 | ^^^^^^^
@@ -26,7 +26,7 @@ LL | let v1: Boolean = true;
2626 | help: perhaps you intended to use this type: `bool`
2727
2828error[E0425]: cannot find type `Bool` in this scope
29- --> $DIR/recommend-literal.rs:15 :13
29+ --> $DIR/recommend-literal.rs:13 :13
3030 |
3131LL | let v2: Bool = true;
3232 | ^^^^
@@ -41,13 +41,9 @@ help: perhaps you intended to use this type
4141LL - let v2: Bool = true;
4242LL + let v2: bool = true;
4343 |
44- help: consider importing this struct
45- |
46- LL + use std::mem::type_info::Bool;
47- |
4844
4945error[E0425]: cannot find type `boolean` in this scope
50- --> $DIR/recommend-literal.rs:21 :9
46+ --> $DIR/recommend-literal.rs:19 :9
5147 |
5248LL | fn z(a: boolean) {
5349 | ^^^^^^^
@@ -56,7 +52,7 @@ LL | fn z(a: boolean) {
5652 | help: perhaps you intended to use this type: `bool`
5753
5854error[E0425]: cannot find type `byte` in this scope
59- --> $DIR/recommend-literal.rs:26 :11
55+ --> $DIR/recommend-literal.rs:24 :11
6056 |
6157LL | fn a() -> byte {
6258 | ^^^^
@@ -65,7 +61,7 @@ LL | fn a() -> byte {
6561 | help: perhaps you intended to use this type: `u8`
6662
6763error[E0425]: cannot find type `float` in this scope
68- --> $DIR/recommend-literal.rs:33 :12
64+ --> $DIR/recommend-literal.rs:31 :12
6965 |
7066LL | width: float,
7167 | ^^^^^
@@ -74,7 +70,7 @@ LL | width: float,
7470 | help: perhaps you intended to use this type: `f32`
7571
7672error[E0425]: cannot find type `int` in this scope
77- --> $DIR/recommend-literal.rs:36 :19
73+ --> $DIR/recommend-literal.rs:34 :19
7874 |
7975LL | depth: Option<int>,
8076 | ^^^ not found in this scope
@@ -90,7 +86,7 @@ LL | struct Data<int> {
9086 | +++++
9187
9288error[E0425]: cannot find type `short` in this scope
93- --> $DIR/recommend-literal.rs:42 :16
89+ --> $DIR/recommend-literal.rs:40 :16
9490 |
9591LL | impl Stuff for short {}
9692 | ^^^^^
0 commit comments