about summary refs log tree commit diff
path: root/src/test/compile-fail/const-eval-overflow2b.rs
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-01-31 10:20:30 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-03-08 08:34:16 +0100
commit8c53d54b98edd77e32fbf4f4fd27d312b251ec6b (patch)
treea60c2a76b5cbd2e1f001088726acc12f98eaf23f /src/test/compile-fail/const-eval-overflow2b.rs
parentd2f363ba89f41f3abb1e85d44eaae93ea338d3a4 (diff)
downloadrust-8c53d54b98edd77e32fbf4f4fd27d312b251ec6b.tar.gz
rust-8c53d54b98edd77e32fbf4f4fd27d312b251ec6b.zip
Update tests
Diffstat (limited to 'src/test/compile-fail/const-eval-overflow2b.rs')
-rw-r--r--src/test/compile-fail/const-eval-overflow2b.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/compile-fail/const-eval-overflow2b.rs b/src/test/compile-fail/const-eval-overflow2b.rs
index 347ba7603e2..f6463900eeb 100644
--- a/src/test/compile-fail/const-eval-overflow2b.rs
+++ b/src/test/compile-fail/const-eval-overflow2b.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 add with overflow
     (
      i8::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_I16: (i16,) =
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
     (
      i16::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_I32: (i32,) =
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
     (
      i32::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_I64: (i64,) =
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
     (
      i64::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_U8: (u8,) =
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
     (
      u8::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_U16: (u16,) = (
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
      u16::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_U32: (u32,) = (
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
      u32::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 const VALS_U64: (u64,) =
      //~^ ERROR constant evaluation error
+     //~| ERROR constant evaluation error
      //~| attempt to add with overflow
     (
      u64::MAX + 1,
-     //~^ ERROR constant evaluation error
      );
 
 fn main() {