blob: dd1fd8463773e6e472a80f347606b97114d42293 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | #![stable(feature = "foo", since = "1.33.0")]
#![feature(staged_api)]
#[stable(feature = "foo", since = "1.33.0")]
#[rustc_const_unstable(feature = "const_foo", issue = "none")]
const fn unstable(a: *const i32, b: i32) -> bool {
    *a == b
    //~^ ERROR dereference of raw pointer is unsafe
}
fn main() {}
 |