diff options
Diffstat (limited to 'tests/ui/consts/inline_asm.stderr')
-rw-r--r-- | tests/ui/consts/inline_asm.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/inline_asm.stderr b/tests/ui/consts/inline_asm.stderr new file mode 100644 index 000000000..65a828d11 --- /dev/null +++ b/tests/ui/consts/inline_asm.stderr @@ -0,0 +1,9 @@ +error[E0015]: inline assembly is not allowed in constants + --> $DIR/inline_asm.rs:5:24 + | +LL | const _: () = unsafe { asm!("nop") }; + | ^^^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0015`. |