Initially reported [here](https://github.com/rust-lang/rust/issues/44580#issuecomment-489294181). The following code: ```rust trait Foo { const N: usize; fn foo() -> [u8; Self::N]; } ``` [Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=849ea34c4690f0b9baab9328679ea0d3) 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](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ecc943d64d35c2cde6f50603d30731c5) without any issues. cc @varkor @yodaldevoid