rust/tests/compile-fail/backtrace/bad-backtrace-ptr.rs
2021-05-08 15:33:27 +08:00

10 lines
214 B
Rust

extern "Rust" {
fn miri_resolve_frame(ptr: *mut (), flags: u64);
}
fn main() {
unsafe {
miri_resolve_frame(0 as *mut _, 0); //~ ERROR null pointer is not a valid pointer for this operation
}
}