#![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete trait Foo {} impl Foo for [(); N] where Self:FooImpl<{N==0}> //~^ERROR constant expression depends on a generic parameter {} trait FooImpl{} impl FooImpl for [(); 0] {} impl FooImpl for [();N] {} fn foo(_: impl Foo) {} fn main() { foo([]); foo([()]); }