mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
12 lines
304 B
Rust
12 lines
304 B
Rust
#![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
|
|
//~^ dereference of raw pointer is unsafe
|
|
}
|
|
|
|
fn main() {}
|