Skip to content

Commit 2259fe1

Browse files
pnkfelixnikomatsakis
authored andcommitted
Accommodate the "int literal is too large" error message currently embedded in rustc.
1 parent dc1ba08 commit 2259fe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/compile-fail/int-literal-too-large-span.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// issue #17123
1212

1313
fn main() {
14-
100000000000000000000000000000000 //~ ERROR isize literal is too large
14+
100000000000000000000000000000000is //~ ERROR int literal is too large
1515

1616
; // the span shouldn't point to this.
1717
}

src/test/compile-fail/issue-5544-b.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
fn main() {
12-
let _i = 0xff_ffff_ffff_ffff_ffff;
13-
//~^ ERROR isize literal is too large
12+
let _i = 0xff_ffff_ffff_ffff_ffff_is;
13+
//~^ ERROR int literal is too large
1414
}

0 commit comments

Comments
 (0)