1
Fork 0

Update tests

This commit is contained in:
Oliver Schneider 2018-01-29 20:47:09 +01:00 committed by Oliver Schneider
parent 45abb1ba84
commit ceb634a732
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
16 changed files with 75 additions and 57 deletions

View file

@ -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() {