Update other tests

This commit is contained in:
Terry Raimondo 2018-05-28 14:43:44 +02:00
parent b81fd202a0
commit ed011c45c4
No known key found for this signature in database
GPG Key ID: 28F210B495D27D90
3 changed files with 23 additions and 9 deletions

View File

@ -10,7 +10,7 @@ error: digit groups should be smaller
--> $DIR/large_digit_groups.rs:7:31
|
7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32);
| ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x123_4567_8901_usize`
| ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
error: digit groups should be smaller
--> $DIR/large_digit_groups.rs:7:54

View File

@ -87,24 +87,38 @@ help: if you mean to use an octal constant, use `0o`
| ^^^^^
error: long literal lacking separators
--> $DIR/literals.rs:35:17
--> $DIR/literals.rs:39:17
|
35 | let fail9 = 0xabcdef;
39 | let fail9 = 0xabcdef;
| ^^^^^^^^ help: consider: `0x00ab_cdef`
|
= note: `-D unreadable-literal` implied by `-D warnings`
error: long literal lacking separators
--> $DIR/literals.rs:36:18
--> $DIR/literals.rs:40:18
|
36 | let fail10 = 0xBAFEBAFE;
40 | let fail10 = 0xBAFEBAFE;
| ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
error: long literal lacking separators
--> $DIR/literals.rs:37:18
--> $DIR/literals.rs:41:18
|
37 | let fail11 = 0xabcdeff;
41 | let fail11 = 0xabcdeff;
| ^^^^^^^^^ help: consider: `0x0abc_deff`
error: aborting due to 14 previous errors
error: long literal lacking separators
--> $DIR/literals.rs:42:18
|
42 | let fail12 = 0xabcabcabcabcabcabc;
| ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
error: digit groups should be smaller
--> $DIR/literals.rs:43:18
|
43 | let fail13 = 0x1_23456_78901_usize;
| ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
|
= note: `-D large-digit-groups` implied by `-D warnings`
error: aborting due to 16 previous errors

View File

@ -10,7 +10,7 @@ error: long literal lacking separators
--> $DIR/unreadable_literal.rs:7:30
|
7 | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
| ^^^^^^^^^^^^^^^^^^^ help: consider: `0x123_4567_8901_usize`
| ^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
error: long literal lacking separators
--> $DIR/unreadable_literal.rs:7:51