about summary refs log tree commit diff
path: root/tests/ui/unsafe/inline_asm.thir.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsafe/inline_asm.thir.stderr')
-rw-r--r--tests/ui/unsafe/inline_asm.thir.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/unsafe/inline_asm.thir.stderr b/tests/ui/unsafe/inline_asm.thir.stderr
new file mode 100644
index 00000000000..633f1edb26c
--- /dev/null
+++ b/tests/ui/unsafe/inline_asm.thir.stderr
@@ -0,0 +1,11 @@
+error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
+  --> $DIR/inline_asm.rs:8:5
+   |
+LL |     asm!("nop");
+   |     ^^^^^^^^^^^ use of inline assembly
+   |
+   = note: inline assembly is entirely unchecked and can cause undefined behavior
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0133`.