|
1 | 1 | error: mistyped literal suffix
|
2 |
| - --> $DIR/mistyped_literal_suffix.rs:12:18 |
| 2 | + --> $DIR/mistyped_literal_suffix.rs:13:18 |
3 | 3 | |
|
4 | 4 | LL | let fail14 = 2_32;
|
5 | 5 | | ^^^^ help: did you mean to write: `2_i32`
|
6 | 6 | |
|
7 | 7 | = note: `#[deny(clippy::mistyped_literal_suffixes)]` on by default
|
8 | 8 |
|
9 | 9 | error: mistyped literal suffix
|
10 |
| - --> $DIR/mistyped_literal_suffix.rs:13:18 |
| 10 | + --> $DIR/mistyped_literal_suffix.rs:14:18 |
11 | 11 | |
|
12 | 12 | LL | let fail15 = 4_64;
|
13 | 13 | | ^^^^ help: did you mean to write: `4_i64`
|
14 | 14 |
|
15 | 15 | error: mistyped literal suffix
|
16 |
| - --> $DIR/mistyped_literal_suffix.rs:14:18 |
| 16 | + --> $DIR/mistyped_literal_suffix.rs:15:18 |
17 | 17 | |
|
18 | 18 | LL | let fail16 = 7_8; //
|
19 | 19 | | ^^^ help: did you mean to write: `7_i8`
|
20 | 20 |
|
21 | 21 | error: mistyped literal suffix
|
22 |
| - --> $DIR/mistyped_literal_suffix.rs:15:18 |
| 22 | + --> $DIR/mistyped_literal_suffix.rs:16:18 |
23 | 23 | |
|
24 | 24 | LL | let fail17 = 23_16; //
|
25 | 25 | | ^^^^^ help: did you mean to write: `23_i16`
|
26 | 26 |
|
27 | 27 | error: mistyped literal suffix
|
28 |
| - --> $DIR/mistyped_literal_suffix.rs:18:18 |
| 28 | + --> $DIR/mistyped_literal_suffix.rs:19:18 |
29 | 29 | |
|
30 | 30 | LL | let fail20 = 2__8; //
|
31 | 31 | | ^^^^ help: did you mean to write: `2_i8`
|
32 | 32 |
|
33 | 33 | error: mistyped literal suffix
|
34 |
| - --> $DIR/mistyped_literal_suffix.rs:19:18 |
| 34 | + --> $DIR/mistyped_literal_suffix.rs:20:18 |
35 | 35 | |
|
36 | 36 | LL | let fail21 = 4___16; //
|
37 | 37 | | ^^^^^^ help: did you mean to write: `4_i16`
|
38 | 38 |
|
39 | 39 | error: mistyped literal suffix
|
40 |
| - --> $DIR/mistyped_literal_suffix.rs:22:18 |
| 40 | + --> $DIR/mistyped_literal_suffix.rs:23:18 |
41 | 41 | |
|
42 | 42 | LL | let fail25 = 1E2_32;
|
43 | 43 | | ^^^^^^ help: did you mean to write: `1E2_f32`
|
44 | 44 |
|
45 | 45 | error: mistyped literal suffix
|
46 |
| - --> $DIR/mistyped_literal_suffix.rs:23:18 |
| 46 | + --> $DIR/mistyped_literal_suffix.rs:24:18 |
47 | 47 | |
|
48 | 48 | LL | let fail26 = 43E7_64;
|
49 | 49 | | ^^^^^^^ help: did you mean to write: `43E7_f64`
|
50 | 50 |
|
51 | 51 | error: mistyped literal suffix
|
52 |
| - --> $DIR/mistyped_literal_suffix.rs:24:18 |
| 52 | + --> $DIR/mistyped_literal_suffix.rs:25:18 |
53 | 53 | |
|
54 | 54 | LL | let fail27 = 243E17_32;
|
55 | 55 | | ^^^^^^^^^ help: did you mean to write: `243E17_f32`
|
56 | 56 |
|
57 | 57 | error: mistyped literal suffix
|
58 |
| - --> $DIR/mistyped_literal_suffix.rs:25:18 |
| 58 | + --> $DIR/mistyped_literal_suffix.rs:26:18 |
59 | 59 | |
|
60 | 60 | LL | let fail28 = 241251235E723_64;
|
61 | 61 | | ^^^^^^^^^^^^^^^^ help: did you mean to write: `241_251_235E723_f64`
|
62 | 62 |
|
63 | 63 | error: mistyped literal suffix
|
64 |
| - --> $DIR/mistyped_literal_suffix.rs:28:13 |
| 64 | + --> $DIR/mistyped_literal_suffix.rs:30:18 |
| 65 | + | |
| 66 | +LL | let fail30 = 127_8; // should be i8 |
| 67 | + | ^^^^^ help: did you mean to write: `127_i8` |
| 68 | + |
| 69 | +error: mistyped literal suffix |
| 70 | + --> $DIR/mistyped_literal_suffix.rs:31:18 |
| 71 | + | |
| 72 | +LL | let fail31 = 240_8; // should be u8 |
| 73 | + | ^^^^^ help: did you mean to write: `240_u8` |
| 74 | + |
| 75 | +error: mistyped literal suffix |
| 76 | + --> $DIR/mistyped_literal_suffix.rs:33:18 |
| 77 | + | |
| 78 | +LL | let fail33 = 0x1234_16; |
| 79 | + | ^^^^^^^^^ help: did you mean to write: `0x1234_i16` |
| 80 | + |
| 81 | +error: mistyped literal suffix |
| 82 | + --> $DIR/mistyped_literal_suffix.rs:34:18 |
| 83 | + | |
| 84 | +LL | let fail34 = 0xABCD_16; |
| 85 | + | ^^^^^^^^^ help: did you mean to write: `0xABCD_u16` |
| 86 | + |
| 87 | +error: mistyped literal suffix |
| 88 | + --> $DIR/mistyped_literal_suffix.rs:36:18 |
| 89 | + | |
| 90 | +LL | let fail36 = 0xFFFF_FFFF_FFFF_FFFF_64; // u64 |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean to write: `0xFFFF_FFFF_FFFF_FFFF_u64` |
| 92 | + |
| 93 | +error: mistyped literal suffix |
| 94 | + --> $DIR/mistyped_literal_suffix.rs:42:13 |
65 | 95 | |
|
66 | 96 | LL | let _ = 1.12345E1_32;
|
67 | 97 | | ^^^^^^^^^^^^ help: did you mean to write: `1.123_45E1_f32`
|
68 | 98 |
|
69 |
| -error: aborting due to 11 previous errors |
| 99 | +error: aborting due to 16 previous errors |
70 | 100 |
|
0 commit comments