mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
217 B
Rust
11 lines
217 B
Rust
// unit-test: ConstProp
|
|
#[inline(never)]
|
|
fn read(_: usize) { }
|
|
|
|
// EMIT_MIR const_prop_fails_gracefully.main.ConstProp.diff
|
|
fn main() {
|
|
const FOO: &i32 = &1;
|
|
let x = FOO as *const i32 as usize;
|
|
read(x);
|
|
}
|