|
1 | 1 | error: inconsistent casing in hexadecimal literal
|
2 |
| - --> $DIR/literals.rs:14:17 |
| 2 | + --> $DIR/literals.rs:12:17 |
3 | 3 | |
|
4 |
| -14 | let fail1 = 0xabCD; |
| 4 | +12 | let fail1 = 0xabCD; |
5 | 5 | | ^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D mixed-case-hex-literals` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: inconsistent casing in hexadecimal literal
|
10 |
| - --> $DIR/literals.rs:15:17 |
| 10 | + --> $DIR/literals.rs:13:17 |
11 | 11 | |
|
12 |
| -15 | let fail2 = 0xabCD_u32; |
| 12 | +13 | let fail2 = 0xabCD_u32; |
13 | 13 | | ^^^^^^^^^^
|
14 | 14 |
|
15 | 15 | error: inconsistent casing in hexadecimal literal
|
16 |
| - --> $DIR/literals.rs:16:17 |
| 16 | + --> $DIR/literals.rs:14:17 |
17 | 17 | |
|
18 |
| -16 | let fail2 = 0xabCD_isize; |
| 18 | +14 | let fail2 = 0xabCD_isize; |
19 | 19 | | ^^^^^^^^^^^^
|
20 | 20 |
|
21 | 21 | error: integer type suffix should be separated by an underscore
|
22 |
| - --> $DIR/literals.rs:17:27 |
| 22 | + --> $DIR/literals.rs:15:27 |
23 | 23 | |
|
24 |
| -17 | let fail_multi_zero = 000_123usize; |
| 24 | +15 | let fail_multi_zero = 000_123usize; |
25 | 25 | | ^^^^^^^^^^^^
|
26 | 26 | |
|
27 | 27 | = note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
28 | 28 |
|
29 | 29 | error: this is a decimal constant
|
30 |
| - --> $DIR/literals.rs:17:27 |
| 30 | + --> $DIR/literals.rs:15:27 |
31 | 31 | |
|
32 |
| -17 | let fail_multi_zero = 000_123usize; |
| 32 | +15 | let fail_multi_zero = 000_123usize; |
33 | 33 | | ^^^^^^^^^^^^
|
34 | 34 | |
|
35 | 35 | = note: `-D zero-prefixed-literal` implied by `-D warnings`
|
36 | 36 | help: if you mean to use a decimal constant, remove the `0` to remove confusion
|
37 | 37 | |
|
38 |
| -17 | let fail_multi_zero = 123usize; |
| 38 | +15 | let fail_multi_zero = 123usize; |
39 | 39 | | ^^^^^^^^
|
40 | 40 | help: if you mean to use an octal constant, use `0o`
|
41 | 41 | |
|
42 |
| -17 | let fail_multi_zero = 0o123usize; |
| 42 | +15 | let fail_multi_zero = 0o123usize; |
43 | 43 | | ^^^^^^^^^^
|
44 | 44 |
|
45 | 45 | error: integer type suffix should be separated by an underscore
|
46 |
| - --> $DIR/literals.rs:22:17 |
| 46 | + --> $DIR/literals.rs:20:17 |
47 | 47 | |
|
48 |
| -22 | let fail3 = 1234i32; |
| 48 | +20 | let fail3 = 1234i32; |
49 | 49 | | ^^^^^^^
|
50 | 50 |
|
51 | 51 | error: integer type suffix should be separated by an underscore
|
52 |
| - --> $DIR/literals.rs:23:17 |
| 52 | + --> $DIR/literals.rs:21:17 |
53 | 53 | |
|
54 |
| -23 | let fail4 = 1234u32; |
| 54 | +21 | let fail4 = 1234u32; |
55 | 55 | | ^^^^^^^
|
56 | 56 |
|
57 | 57 | error: integer type suffix should be separated by an underscore
|
58 |
| - --> $DIR/literals.rs:24:17 |
| 58 | + --> $DIR/literals.rs:22:17 |
59 | 59 | |
|
60 |
| -24 | let fail5 = 1234isize; |
| 60 | +22 | let fail5 = 1234isize; |
61 | 61 | | ^^^^^^^^^
|
62 | 62 |
|
63 | 63 | error: integer type suffix should be separated by an underscore
|
64 |
| - --> $DIR/literals.rs:25:17 |
| 64 | + --> $DIR/literals.rs:23:17 |
65 | 65 | |
|
66 |
| -25 | let fail6 = 1234usize; |
| 66 | +23 | let fail6 = 1234usize; |
67 | 67 | | ^^^^^^^^^
|
68 | 68 |
|
69 | 69 | error: float type suffix should be separated by an underscore
|
70 |
| - --> $DIR/literals.rs:26:17 |
| 70 | + --> $DIR/literals.rs:24:17 |
71 | 71 | |
|
72 |
| -26 | let fail7 = 1.5f32; |
| 72 | +24 | let fail7 = 1.5f32; |
73 | 73 | | ^^^^^^
|
74 | 74 |
|
75 | 75 | error: this is a decimal constant
|
76 |
| - --> $DIR/literals.rs:30:17 |
| 76 | + --> $DIR/literals.rs:28:17 |
77 | 77 | |
|
78 |
| -30 | let fail8 = 0123; |
| 78 | +28 | let fail8 = 0123; |
79 | 79 | | ^^^^
|
80 | 80 | help: if you mean to use a decimal constant, remove the `0` to remove confusion
|
81 | 81 | |
|
82 |
| -30 | let fail8 = 123; |
| 82 | +28 | let fail8 = 123; |
83 | 83 | | ^^^
|
84 | 84 | help: if you mean to use an octal constant, use `0o`
|
85 | 85 | |
|
86 |
| -30 | let fail8 = 0o123; |
| 86 | +28 | let fail8 = 0o123; |
87 | 87 | | ^^^^^
|
88 | 88 |
|
89 |
| -error: aborting due to 11 previous errors |
| 89 | +error: long literal lacking separators |
| 90 | + --> $DIR/literals.rs:39:17 |
| 91 | + | |
| 92 | +39 | let fail9 = 0xabcdef; |
| 93 | + | ^^^^^^^^ help: consider: `0x00ab_cdef` |
| 94 | + | |
| 95 | + = note: `-D unreadable-literal` implied by `-D warnings` |
| 96 | + |
| 97 | +error: long literal lacking separators |
| 98 | + --> $DIR/literals.rs:40:18 |
| 99 | + | |
| 100 | +40 | let fail10 = 0xBAFEBAFE; |
| 101 | + | ^^^^^^^^^^ help: consider: `0xBAFE_BAFE` |
| 102 | + |
| 103 | +error: long literal lacking separators |
| 104 | + --> $DIR/literals.rs:41:18 |
| 105 | + | |
| 106 | +41 | let fail11 = 0xabcdeff; |
| 107 | + | ^^^^^^^^^ help: consider: `0x0abc_deff` |
| 108 | + |
| 109 | +error: long literal lacking separators |
| 110 | + --> $DIR/literals.rs:42:18 |
| 111 | + | |
| 112 | +42 | let fail12 = 0xabcabcabcabcabcabc; |
| 113 | + | ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc` |
| 114 | + |
| 115 | +error: digit groups should be smaller |
| 116 | + --> $DIR/literals.rs:43:18 |
| 117 | + | |
| 118 | +43 | let fail13 = 0x1_23456_78901_usize; |
| 119 | + | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize` |
| 120 | + | |
| 121 | + = note: `-D large-digit-groups` implied by `-D warnings` |
| 122 | + |
| 123 | +error: aborting due to 16 previous errors |
90 | 124 |
|
0 commit comments