You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structA<constN:usize = 64>{}// impl A { // Works because it's specialized to 64impl<constN:usize>A<N>{// Failsfnnew() -> Self{todo!();}}pubfnblah(){A::new();}
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.