diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-01-29 20:47:09 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:34:14 +0100 |
| commit | ceb634a7323b9957ae94873c6bcb623bf61af34f (patch) | |
| tree | a3fbc96e78aca5501d18a204bc66f6748949ae69 /src/test/compile-fail/const-eval-overflow2.rs | |
| parent | 45abb1ba8436efe960768b067a2683d577e16b8b (diff) | |
| download | rust-ceb634a7323b9957ae94873c6bcb623bf61af34f.tar.gz rust-ceb634a7323b9957ae94873c6bcb623bf61af34f.zip | |
Update tests
Diffstat (limited to 'src/test/compile-fail/const-eval-overflow2.rs')
| -rw-r--r-- | src/test/compile-fail/const-eval-overflow2.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/compile-fail/const-eval-overflow2.rs b/src/test/compile-fail/const-eval-overflow2.rs index 61a653589ff..aa735cc0453 100644 --- a/src/test/compile-fail/const-eval-overflow2.rs +++ b/src/test/compile-fail/const-eval-overflow2.rs @@ -22,57 +22,57 @@ use std::{i8, i16, i32, i64, isize}; use std::{u8, u16, u32, u64, usize}; const VALS_I8: (i8,) = - ( - i8::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + i8::MIN - 1, ); const VALS_I16: (i16,) = - ( - i16::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + i16::MIN - 1, ); const VALS_I32: (i32,) = - ( - i32::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + i32::MIN - 1, ); const VALS_I64: (i64,) = - ( - i64::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + i64::MIN - 1, ); const VALS_U8: (u8,) = - ( - u8::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + u8::MIN - 1, ); const VALS_U16: (u16,) = ( - u16::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + u16::MIN - 1, ); const VALS_U32: (u32,) = ( - u32::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + u32::MIN - 1, ); const VALS_U64: (u64,) = - ( - u64::MIN - 1, //~^ ERROR constant evaluation error //~| attempt to subtract with overflow + ( + u64::MIN - 1, ); fn main() { |
