Initially reported here.
The following code:
trait Foo {
const N: usize;
fn foo() -> [u8; Self::N];
}
Playground
Results in a "no associated item named N found for type Self in the current scope" compilation error on current Nightly.
Note that associated constants in impl blocks work without any issues.
cc @varkor @yodaldevoid
Initially reported here.
The following code:
Playground
Results in a "no associated item named
Nfound for typeSelfin the current scope" compilation error on current Nightly.Note that associated constants in
implblocks work without any issues.cc @varkor @yodaldevoid