about summary refs log tree commit diff
path: root/src/test/compile-fail/const-eval-overflow2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/const-eval-overflow2.rs')
-rw-r--r--src/test/compile-fail/const-eval-overflow2.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/compile-fail/const-eval-overflow2.rs b/src/test/compile-fail/const-eval-overflow2.rs
index ef1cdb2814f..d715847e03f 100644
--- a/src/test/compile-fail/const-eval-overflow2.rs
+++ b/src/test/compile-fail/const-eval-overflow2.rs
@@ -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() {