Ralf Jung 17946c22b1 const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00

14 lines
441 B
Plaintext

error: internal compiler error[E0080]: attempt to compute `0_u32 - 1_u32`, which would overflow
--> $DIR/err.rs:9:21
|
LL | pub static C: u32 = 0 - 1;
| ^^^^^ evaluation of `C` failed here
error: the compiler unexpectedly panicked. this is a bug.
query stack during panic:
#0 [eval_static_initializer] evaluating initializer of static `C`
#1 [analysis] running analysis passes on this crate
end of query stack