Const parameter defaults are not used as a fallback during type inference #96300
Labels
A-inference
Area: Type inference
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: the const generic would be inferred to 64.
Instead, this happened: fails to compile. An attempt to fix it by doing
impl<const N: usize = 64>
doesn't work because it's disallowed.The text was updated successfully, but these errors were encountered: