mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
9 lines
295 B
Rust
9 lines
295 B
Rust
fn f(p: *const u8) -> u8 {
|
|
let _ = *p; //~ ERROR dereference of raw pointer is unsafe
|
|
let _: u8 = *p; //~ ERROR dereference of raw pointer is unsafe
|
|
_ = *p; //~ ERROR dereference of raw pointer is unsafe
|
|
return *p; //~ ERROR dereference of raw pointer is unsafe
|
|
}
|
|
|
|
fn main() {
|
|
}
|