about summary refs log tree commit diff
path: root/src/test/compile-fail/const-eval-overflow2.rs
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-02-06 14:15:36 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-03-08 08:34:17 +0100
commitf363e08c9dbddc339eed14b59580de784f74d4e2 (patch)
tree88477dabaafe499144e8bc67a478b28efcef33b4 /src/test/compile-fail/const-eval-overflow2.rs
parentf68dc0190a369b6ce9bcfaae26d1b07941028da0 (diff)
downloadrust-f363e08c9dbddc339eed14b59580de784f74d4e2.tar.gz
rust-f363e08c9dbddc339eed14b59580de784f74d4e2.zip
Update compile-fail tests
Diffstat (limited to 'src/test/compile-fail/const-eval-overflow2.rs')
-rw-r--r--src/test/compile-fail/const-eval-overflow2.rs32
1 files changed, 8 insertions, 24 deletions
diff --git a/src/test/compile-fail/const-eval-overflow2.rs b/src/test/compile-fail/const-eval-overflow2.rs
index d715847e03f..25787b7bb4b 100644
--- a/src/test/compile-fail/const-eval-overflow2.rs
+++ b/src/test/compile-fail/const-eval-overflow2.rs
@@ -22,65 +22,49 @@ use std::{i8, i16, i32, i64, isize};
 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() {