about summary refs log tree commit diff
path: root/tests/ui/unsafe/unsafe-block-without-braces.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsafe/unsafe-block-without-braces.rs')
-rw-r--r--tests/ui/unsafe/unsafe-block-without-braces.rs6
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 00000000000..4e461161854
--- /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`