mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
9 lines
257 B
Rust
9 lines
257 B
Rust
// revisions: mir thir
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
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
|
|
}
|