about summary refs log tree commit diff
path: root/src/test/compile-fail/const-eval-overflow2.rs
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-06-27 13:36:30 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-06-28 11:04:25 +0200
commit4eea1a4e5e28a9a84579ee6a52f115375adefde6 (patch)
treee1cb8479f2e57b83a38e83060cf33025c08d5cb7 /src/test/compile-fail/const-eval-overflow2.rs
parent4bb9648b27e2c9f9efdb9e29a0d90b229aaff562 (diff)
downloadrust-4eea1a4e5e28a9a84579ee6a52f115375adefde6.tar.gz
rust-4eea1a4e5e28a9a84579ee6a52f115375adefde6.zip
Don't const propagate the body of constants
Diffstat (limited to 'src/test/compile-fail/const-eval-overflow2.rs')
-rw-r--r--src/test/compile-fail/const-eval-overflow2.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/compile-fail/const-eval-overflow2.rs b/src/test/compile-fail/const-eval-overflow2.rs
index 7b5db7a4f6d..88fc5182775 100644
--- a/src/test/compile-fail/const-eval-overflow2.rs
+++ b/src/test/compile-fail/const-eval-overflow2.rs
@@ -25,54 +25,46 @@ const VALS_I8: (i8,) =
      //~^ ERROR this constant cannot be used
     (
      i8::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_I16: (i16,) =
      //~^ ERROR this constant cannot be used
     (
      i16::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_I32: (i32,) =
      //~^ ERROR this constant cannot be used
     (
      i32::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_I64: (i64,) =
      //~^ ERROR this constant cannot be used
     (
      i64::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_U8: (u8,) =
      //~^ ERROR this constant cannot be used
     (
      u8::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_U16: (u16,) = (
      //~^ ERROR this constant cannot be used
      u16::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_U32: (u32,) = (
      //~^ ERROR this constant cannot be used
      u32::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 const VALS_U64: (u64,) =
      //~^ ERROR this constant cannot be used
     (
      u64::MIN - 1,
-     //~^ ERROR attempt to subtract with overflow
      );
 
 fn main() {