diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2016-08-24 22:38:14 +0300 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2016-12-30 15:17:26 +0100 |
| commit | db2527add3a9442266e7d31a218b91cda255bd4a (patch) | |
| tree | fc6317ce44940325f19404bb115003f252da77dd /src/test/parse-fail | |
| parent | d9eb756cbfdd0f4388bb7bd203d8d43761ff7942 (diff) | |
| download | rust-db2527add3a9442266e7d31a218b91cda255bd4a.tar.gz rust-db2527add3a9442266e7d31a218b91cda255bd4a.zip | |
Fix parse-fail and compile-fail tests
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/int-literal-too-large-span.rs | 4 | ||||
| -rw-r--r-- | src/test/parse-fail/issue-5544-a.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/issue-5544-b.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/lex-bad-numeric-literals.rs | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/test/parse-fail/int-literal-too-large-span.rs b/src/test/parse-fail/int-literal-too-large-span.rs index c4b25d43579..1af8df7d2f6 100644 --- a/src/test/parse-fail/int-literal-too-large-span.rs +++ b/src/test/parse-fail/int-literal-too-large-span.rs @@ -13,7 +13,7 @@ // issue #17123 fn main() { - 100000000000000000000000000000000 //~ ERROR int literal is too large - + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + //~^ ERROR int literal is too large ; // the span shouldn't point to this. } diff --git a/src/test/parse-fail/issue-5544-a.rs b/src/test/parse-fail/issue-5544-a.rs index f406b2cc803..cf1500e34d8 100644 --- a/src/test/parse-fail/issue-5544-a.rs +++ b/src/test/parse-fail/issue-5544-a.rs @@ -11,6 +11,6 @@ // compile-flags: -Z parse-only fn main() { - let __isize = 18446744073709551616; // 2^64 + let __isize = 340282366920938463463374607431768211456; // 2^128 //~^ ERROR int literal is too large } diff --git a/src/test/parse-fail/issue-5544-b.rs b/src/test/parse-fail/issue-5544-b.rs index 898b0920645..8c0b6741cb8 100644 --- a/src/test/parse-fail/issue-5544-b.rs +++ b/src/test/parse-fail/issue-5544-b.rs @@ -11,6 +11,6 @@ // compile-flags: -Z parse-only fn main() { - let __isize = 0xff_ffff_ffff_ffff_ffff; + let __isize = 0xffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ff; //~^ ERROR int literal is too large } diff --git a/src/test/parse-fail/lex-bad-numeric-literals.rs b/src/test/parse-fail/lex-bad-numeric-literals.rs index bb97b037a00..d495a8edd09 100644 --- a/src/test/parse-fail/lex-bad-numeric-literals.rs +++ b/src/test/parse-fail/lex-bad-numeric-literals.rs @@ -23,8 +23,8 @@ fn main() { 0o; //~ ERROR: no valid digits 1e+; //~ ERROR: expected at least one digit in exponent 0x539.0; //~ ERROR: hexadecimal float literal is not supported - 99999999999999999999999999999999; //~ ERROR: int literal is too large - 99999999999999999999999999999999; //~ ERROR: int literal is too large + 9900000000000000000000000000999999999999999999999999999999; //~ ERROR: int literal is too large + 9900000000000000000000000000999999999999999999999999999999; //~ ERROR: int literal is too large 0x; //~ ERROR: no valid digits 0xu32; //~ ERROR: no valid digits 0ou32; //~ ERROR: no valid digits |
