]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/recommend-literal.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / recommend-literal.stderr
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
19 error[E0412]: cannot find type `boolean` in this scope
20   --> $DIR/recommend-literal.rs:12:9
21    |
22 LL | fn z(a: boolean) {
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 `byte` in this scope
29   --> $DIR/recommend-literal.rs:17:11
30    |
31 LL | fn a() -> byte {
32    |           ^^^^
33    |           |
34    |           not found in this scope
35    |           help: perhaps you intended to use this type: `u8`
36
37 error[E0412]: cannot find type `float` in this scope
38   --> $DIR/recommend-literal.rs:24:12
39    |
40 LL |     width: float,
41    |            ^^^^^
42    |            |
43    |            not found in this scope
44    |            help: perhaps you intended to use this type: `f32`
45
46 error[E0412]: cannot find type `int` in this scope
47   --> $DIR/recommend-literal.rs:27:19
48    |
49 LL |     depth: Option<int>,
50    |                   ^^^ not found in this scope
51    |
52 help: perhaps you intended to use this type
53    |
54 LL |     depth: Option<i32>,
55    |                   ^^^
56 help: you might be missing a type parameter
57    |
58 LL | struct Data<int> {
59    |            ^^^^^
60
61 error[E0412]: cannot find type `short` in this scope
62   --> $DIR/recommend-literal.rs:33:16
63    |
64 LL | impl Stuff for short {}
65    |                ^^^^^
66    |                |
67    |                not found in this scope
68    |                help: perhaps you intended to use this type: `i16`
69
70 error: aborting due to 7 previous errors
71
72 For more information about this error, try `rustc --explain E0412`.