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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
122 B
Rust
Raw Normal View History

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