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