const-generics & generic default parameter regression on nightly #74806
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
Given that there were many recent changes to const-generics, I don't particularly know if this is an intended change or not. But from the standpoint of an end-user of this feature on nightly, it would appear that something changed that caused downstream things to break without a reference to why. If this was intended, please feel free to close this issue, but I think it might be worthwhile to note what caused this change.
I tried this code:
I expected to see this happen: Previously, this would compile on nightly without any error.
Instead, this happened: But this now fails to compile with the error:
If I swap the two items, that is also a compiler error.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: