remove no-longer-needed test

This commit is contained in:
Ralf Jung 2020-02-15 19:40:33 +01:00
parent 3134df2214
commit 94047f18c2

View File

@ -1,20 +0,0 @@
#![feature(rustc_attrs)]
#![deny(const_err)]
fn black_box<T>(_: 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);
}