rust/src/test/ui/unsafe/unsafe-block-without-braces.rs
2018-12-25 21:08:33 -07:00

7 lines
148 B
Rust

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