diff --git a/src/test/compile-fail/consts/const-err3.rs b/src/test/compile-fail/consts/const-err3.rs deleted file mode 100644 index efd51f40224..00000000000 --- a/src/test/compile-fail/consts/const-err3.rs +++ /dev/null @@ -1,20 +0,0 @@ -#![feature(rustc_attrs)] -#![deny(const_err)] - -fn black_box(_: T) { - unimplemented!() -} - -fn main() { - let b = 200u8 + 200u8 + 200u8; - //~^ ERROR overflow - let c = 200u8 * 4; - //~^ ERROR overflow - let d = 42u8 - (42u8 + 1); - //~^ ERROR overflow - let _e = [5u8][1]; - //~^ ERROR panic - black_box(b); - black_box(c); - black_box(d); -}