1
Fork 0

Update tests

This commit is contained in:
Oliver Schneider 2018-01-31 10:20:30 +01:00
parent d2f363ba89
commit 8c53d54b98
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
7 changed files with 31 additions and 27 deletions

View file

@ -23,64 +23,64 @@ use std::{u8, u16, u32, u64, usize};
const VALS_I8: (i8,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
i8::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_I16: (i16,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
i16::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_I32: (i32,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
i32::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_I64: (i64,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
i64::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_U8: (u8,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
u8::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_U16: (u16,) = (
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
u16::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_U32: (u32,) = (
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
u32::MIN - 1,
//~^ ERROR constant evaluation error
);
const VALS_U64: (u64,) =
//~^ ERROR constant evaluation error
//~| ERROR constant evaluation error
//~| attempt to subtract with overflow
(
u64::MIN - 1,
//~^ ERROR constant evaluation error
);
fn main() {