We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.
N
Self
Note that associated constants in impl blocks work without any issues.
impl
cc @varkor @yodaldevoid