2021-05-14 21:19:59 +00:00
|
|
|
// revisions: mir thir
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
|
2014-06-25 19:47:34 +00:00
|
|
|
fn f(p: *const u8) -> u8 {
|
2018-07-10 08:52:05 +00:00
|
|
|
return *p; //~ ERROR dereference of raw pointer is unsafe
|
2011-10-12 04:08:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|