Skip to content

Commit

Permalink
Update other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terry90 committed May 28, 2018
1 parent b81fd20 commit ed011c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/ui/large_digit_groups.stderr
Expand Up @@ -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
Expand Down
28 changes: 21 additions & 7 deletions tests/ui/literals.stderr
Expand Up @@ -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

2 changes: 1 addition & 1 deletion tests/ui/unreadable_literal.stderr
Expand Up @@ -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
Expand Down

0 comments on commit ed011c4

Please sign in to comment.