fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB65 linesraw
1error: long literal lacking separators
2  --> $DIR/unreadable_literal.rs:32:17
3   |
4LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
5   |                 ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
6   |
7   = note: `-D clippy::unreadable-literal` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::unreadable_literal)]`
9
10error: long literal lacking separators
11  --> $DIR/unreadable_literal.rs:32:31
12   |
13LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
14   |                               ^^^^^^^^^^^^^^^^ help: consider: `0x1234_5678_usize`
15
16error: long literal lacking separators
17  --> $DIR/unreadable_literal.rs:32:49
18   |
19LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
20   |                                                 ^^^^^^^^^^ help: consider: `123_456_f32`
21
22error: long literal lacking separators
23  --> $DIR/unreadable_literal.rs:32:61
24   |
25LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
26   |                                                             ^^^^^^^^^^^^ help: consider: `1.234_567_f32`
27
28error: long literal lacking separators
29  --> $DIR/unreadable_literal.rs:34:20
30   |
31LL |     let _bad_sci = 1.123456e1;
32   |                    ^^^^^^^^^^ help: consider: `1.123_456e1`
33
34error: long literal lacking separators
35  --> $DIR/unreadable_literal.rs:36:18
36   |
37LL |     let _fail1 = 0xabcdef;
38   |                  ^^^^^^^^ help: consider: `0x00ab_cdef`
39
40error: long literal lacking separators
41  --> $DIR/unreadable_literal.rs:37:23
42   |
43LL |     let _fail2: u32 = 0xBAFEBAFE;
44   |                       ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
45
46error: long literal lacking separators
47  --> $DIR/unreadable_literal.rs:38:18
48   |
49LL |     let _fail3 = 0xabcdeff;
50   |                  ^^^^^^^^^ help: consider: `0x0abc_deff`
51
52error: long literal lacking separators
53  --> $DIR/unreadable_literal.rs:39:24
54   |
55LL |     let _fail4: i128 = 0xabcabcabcabcabcabc;
56   |                        ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
57
58error: long literal lacking separators
59  --> $DIR/unreadable_literal.rs:40:18
60   |
61LL |     let _fail5 = 1.100300400;
62   |                  ^^^^^^^^^^^ help: consider: `1.100_300_400`
63
64error: aborting due to 10 previous errors
65