summaryrefslogtreecommitdiffstats
path: root/tests/ui/asm/const-error.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/asm/const-error.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/asm/const-error.stderr b/tests/ui/asm/const-error.stderr
new file mode 100644
index 000000000..fe3118321
--- /dev/null
+++ b/tests/ui/asm/const-error.stderr
@@ -0,0 +1,9 @@
+error[E0080]: evaluation of `test::<T>::{constant#0}` failed
+ --> $DIR/const-error.rs:11:37
+ |
+LL | unsafe { asm!("/* {} */", const 1 / 0); }
+ | ^^^^^ attempt to divide `1_i32` by zero
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0080`.