diff options
Diffstat (limited to 'tests/ui/consts/const-eval/const-eval-query-stack.stderr')
| -rw-r--r-- | tests/ui/consts/const-eval/const-eval-query-stack.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/const-eval-query-stack.stderr b/tests/ui/consts/const-eval/const-eval-query-stack.stderr new file mode 100644 index 00000000000..b97975c4cd9 --- /dev/null +++ b/tests/ui/consts/const-eval/const-eval-query-stack.stderr @@ -0,0 +1,13 @@ +error[E0080]: evaluation of constant value failed + --> $DIR/const-eval-query-stack.rs:17:16 + | +LL | const X: i32 = 1 / 0; + | ^^^^^ attempt to divide `1_i32` by zero + +query stack during panic: +#0 [eval_to_allocation_raw] const-evaluating + checking `X` +#1 [eval_to_const_value_raw] simplifying constant for the type system `X` +#2 [eval_to_const_value_raw] simplifying constant for the type system `X` +#3 [lint_mod] linting top-level module +#4 [analysis] running analysis passes on this crate +end of query stack |
