summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unreadable_literal.stderr
blob: d7a3377ec37df37c1267db7e58e0c647ac6c7dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:32:17
   |
LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
   |                 ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
   |
   = note: `-D clippy::unreadable-literal` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unreadable_literal)]`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:32:31
   |
LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
   |                               ^^^^^^^^^^^^^^^^ help: consider: `0x1234_5678_usize`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:32:49
   |
LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
   |                                                 ^^^^^^^^^^ help: consider: `123_456_f32`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:32:61
   |
LL |     let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
   |                                                             ^^^^^^^^^^^^ help: consider: `1.234_567_f32`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:34:20
   |
LL |     let _bad_sci = 1.123456e1;
   |                    ^^^^^^^^^^ help: consider: `1.123_456e1`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:36:18
   |
LL |     let _fail1 = 0xabcdef;
   |                  ^^^^^^^^ help: consider: `0x00ab_cdef`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:37:23
   |
LL |     let _fail2: u32 = 0xBAFEBAFE;
   |                       ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:38:18
   |
LL |     let _fail3 = 0xabcdeff;
   |                  ^^^^^^^^^ help: consider: `0x0abc_deff`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:39:24
   |
LL |     let _fail4: i128 = 0xabcabcabcabcabcabc;
   |                        ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`

error: long literal lacking separators
  --> $DIR/unreadable_literal.rs:40:18
   |
LL |     let _fail5 = 1.100300400;
   |                  ^^^^^^^^^^^ help: consider: `1.100_300_400`

error: aborting due to 10 previous errors