summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-42148.rs
blob: cb8c0d6edb6e1f9ed13ba01077a175e23f2619d5 (plain)
1
2
3
4
5
6
// run-pass
struct Zst;

fn main() {
    unsafe { ::std::ptr::write_volatile(1 as *mut Zst, Zst) }
}