mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
7 lines
145 B
Rust
7 lines
145 B
Rust
use std::mem;
|
|
|
|
fn main() {
|
|
let x: &'static u32 = unsafe { &mem::transmute(3.0f32) };
|
|
//~^ ERROR temporary value dropped while borrowed
|
|
}
|