2 // [thir]compile-flags: -Z thir-unsafeck
4 #![stable(feature = "foo", since = "1.33.0")]
5 #![feature(staged_api)]
6 #![feature(const_raw_ptr_deref)]
8 #[stable(feature = "foo", since = "1.33.0")]
9 #[rustc_const_unstable(feature = "const_foo", issue = "none")]
10 const fn unstable(a: *const i32, b: i32) -> bool {
12 //~^ dereference of raw pointer is unsafe