mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +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
|
|
}
|