rust/tests/ui/mir/alignment/place_without_read.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
139 B
Rust
Raw Normal View History

//@ run-pass
//@ compile-flags: -C debug-assertions
fn main() {
let ptr = 1 as *const u16;
unsafe {
let _ = *ptr;
}
}