1
Fork 0
rust/tests/ui/issues/issue-28776.rs

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

7 lines
86 B
Rust
Raw Normal View History

use std::ptr;
fn main() {
2016-08-10 15:29:45 +08:00
(&ptr::write)(1 as *mut _, 42);
//~^ ERROR E0133
}