rust/tests/ui/unsafe/unsafe-block-without-braces.rs

7 lines
122 B
Rust

fn main() {
unsafe //{
std::mem::transmute::<f32, u32>(1.0);
//}
}
//~^^^ ERROR expected `{`, found `std`