Const-eval failure in const fn
does not print the path of what we evaluate
#142010
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider this code:
If we use
C1
, we get the following:But if we use
C2
, we get:Note that it says "evaluation of
oopsie
failed"; I would have expected "evaluation ofS::<i32>::C2
failed". That's where the span points at, too.Cc @oli-obk
The text was updated successfully, but these errors were encountered: