#![feature(const_trait_impl)] trait Trait { const N: usize; } impl const Trait for i32 {} //~^ ERROR not all trait items implemented, missing: `N` fn f() where [(); ::N]:, {} fn main() {}