2021-05-14 23:19:59 +02:00
|
|
|
// revisions: mir thir
|
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
|
|
2017-09-19 16:20:02 +03:00
|
|
|
fn f(p: *mut u8) {
|
2018-07-10 10:52:05 +02:00
|
|
|
*p = 0; //~ ERROR dereference of raw pointer is unsafe
|
2012-08-01 17:30:05 -07:00
|
|
|
return;
|
2011-10-11 21:22:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
}
|