mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
524 B
Rust
12 lines
524 B
Rust
// Regression test for ICE #125876
|
|
|
|
fn main() {
|
|
std::ptr::from_ref(num).cast_mut().as_deref();
|
|
//~^ ERROR cannot find value `num` in this scope
|
|
//~| ERROR no method named `as_deref` found for raw pointer `*mut _` in the current scope
|
|
//~| WARN type annotations needed
|
|
//~| WARN this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
|
//~| WARN type annotations needed
|
|
//~| WARN this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
|
}
|