]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-fn-deref-ptr.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / 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 }