mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +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
|
||
|
}
|