]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-eval/transmute-const-promotion.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-eval / transmute-const-promotion.rs
CommitLineData
b7449926 1use std::mem;
0531ce1d 2
a7813a04 3fn main() {
b7449926 4 let x: &'static u32 = unsafe { &mem::transmute(3.0f32) };
48663c56 5 //~^ ERROR temporary value dropped while borrowed
54a0048b 6}