organize compile-fail tests in folders

This commit is contained in:
Ralf Jung 2020-04-11 09:30:13 +02:00
parent 910afefcf6
commit b2bf4ec2f5
73 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,12 @@
// Validation makes this fail in the wrong place
// compile-flags: -Zmiri-disable-validation
#![feature(box_syntax)]
fn main() {
let x = box 42;
unsafe {
let f = std::mem::transmute::<Box<i32>, fn()>(x);
f() //~ ERROR function pointer but it does not point to a function
}
}