rust/tests/ui/consts/const-eval/const-eval-query-stack.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
530 B
Plaintext
Raw Normal View History

error[E0080]: evaluation of constant value failed
2022-09-21 06:05:20 -05:00
--> $DIR/const-eval-query-stack.rs:17:16
|
2022-09-21 06:05:20 -05:00
LL | const X: i32 = 1 / 0;
| ^^^^^ attempt to divide `1_i32` by zero
2020-08-19 05:05:32 -05:00
query stack during panic:
2022-09-21 06:05:20 -05:00
#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
2020-08-19 05:05:32 -05:00
end of query stack