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.
6 lines
192 B
Rust
6 lines
192 B
Rust
fn main() {
|
|
let _: unsafe fn() = || { ::std::pin::Pin::new_unchecked(&0_u8); };
|
|
//~^ ERROR E0133
|
|
let _: unsafe fn() = || unsafe { ::std::pin::Pin::new_unchecked(&0_u8); }; // OK
|
|
}
|