]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe/unsafe-fn-deref-ptr.rs
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[rust.git] / tests / ui / unsafe / unsafe-fn-deref-ptr.rs
1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3
4 fn f(p: *const u8) -> u8 {
5     return *p; //~ ERROR dereference of raw pointer is unsafe
6 }
7
8 fn main() {
9 }