Auto merge of #1320 - RalfJung:tests, r=RalfJung

compile-fail test organization

Move compile-fail tests to appropriate directories.

(run-pass tests often test many things in one file, organized by functions. But for compile-fail tests that is not possible.)
This commit is contained in:
bors 2020-04-11 18:11:35 +00:00
commit 8c396609d0
73 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
// compile-flags: -Zmiri-disable-validation
fn main() {
let x = 2usize as *const u32;
let _y = unsafe { &*x as *const u32 }; //~ ERROR invalid use of 2 as a pointer
let x = 16usize as *const u32;
let _y = unsafe { &*x as *const u32 }; //~ ERROR invalid use of 16 as a pointer
}