2020-08-19 05:05:32 -05:00
|
|
|
error: reaching this expression at runtime will panic or abort
|
2020-08-20 19:00:00 -05:00
|
|
|
--> $DIR/const-eval-query-stack.rs:19:28
|
2020-08-19 05:05:32 -05:00
|
|
|
|
|
|
|
|
LL | let x: &'static i32 = &(1 / 0);
|
|
|
|
| -^^^^^^^
|
|
|
|
| |
|
|
|
|
| dividing by zero
|
|
|
|
|
|
|
|
|
= note: `#[deny(const_err)]` on by default
|
|
|
|
|
|
|
|
query stack during panic:
|
2020-09-07 10:30:38 -05:00
|
|
|
#0 [eval_to_allocation_raw] const-evaluating + checking `main::promoted[1]`
|
2020-09-19 03:57:14 -05:00
|
|
|
#1 [eval_to_const_value_raw] simplifying constant for the type system `main::promoted[1]`
|
|
|
|
#2 [eval_to_const_value_raw] simplifying constant for the type system `main::promoted[1]`
|
2020-08-19 05:05:32 -05:00
|
|
|
#3 [normalize_generic_arg_after_erasing_regions] normalizing `main::promoted[1]`
|
|
|
|
#4 [optimized_mir] optimizing MIR for `main`
|
|
|
|
#5 [collect_and_partition_mono_items] collect_and_partition_mono_items
|
|
|
|
end of query stack
|