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