1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3 
main()4 fn main() {
5     let _: unsafe fn() = || { ::std::pin::Pin::new_unchecked(&0_u8); };
6     //~^ ERROR E0133
7     let _: unsafe fn() = || unsafe { ::std::pin::Pin::new_unchecked(&0_u8); }; // OK
8 }
9