mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00:00
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
|
|
}
|