Open vickenty opened 1 month ago
This error can be worked around by adding the freshly stabilized const {}
block around the second call to concat
, but I think this should not be required, given it worked fine before.
This is https://github.com/rust-lang/rust/pull/121557. In particular, see this comment (that GitHub has hidden so the page load might be weird): https://github.com/rust-lang/rust/pull/121557#issuecomment-1990902440 You might be interested in the RFC that motivated this: https://rust-lang.github.io/rfcs/3027-infallible-promotion.html
Code
I tried this code:
I expected to see this happen: compiles
Instead, this happened: fails to compile with the following error:
Version it worked on
It most recently worked on: 1.78.0
Version with regression
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged