mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
10 lines
295 B
Rust
10 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() {
|
|
}
|