Closed
Description
From: src/test/compile-fail/issue-23302.rs
Error E0265 needs a span_label, updating it from:
error[E0265]: recursive constant
--> src/test/compile-fail/issue-23302.rs:14:5
|
14 | A = X::A as isize, //~ ERROR E0265
| ^^^^^^^^^^^^^^^^^
To:
error[E0265]: recursive constant
--> src/test/compile-fail/issue-23302.rs:14:5
|
14 | A = X::A as isize, //~ ERROR E0265
| ^^^^^^^^^^^^^^^^^ recursive constant
Bonus: I'm not sure how difficult this will be, but if we can underline the part of the constant that is causing the recursion, that might be even better.
error[E0265]: recursive constant
--> src/test/compile-fail/issue-23302.rs:14:5
|
14 | A = X::A as isize, //~ ERROR E0265
| ^^^^ recursion not allowed in constant