diff options
Diffstat (limited to 'tests/ui/unsafe/unsafe-block-without-braces.rs')
-rw-r--r-- | tests/ui/unsafe/unsafe-block-without-braces.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/unsafe/unsafe-block-without-braces.rs b/tests/ui/unsafe/unsafe-block-without-braces.rs new file mode 100644 index 000000000..4e4611618 --- /dev/null +++ b/tests/ui/unsafe/unsafe-block-without-braces.rs @@ -0,0 +1,6 @@ +fn main() { + unsafe //{ + std::mem::transmute::<f32, u32>(1.0); + //} +} +//~^^^ ERROR expected `{`, found `std` |