// run-pass // revisions: full min #![cfg_attr(full, feature(const_generics))] #![cfg_attr(full, allow(incomplete_features))] fn main() { <()>::foo(); } trait Foo { fn foo() -> usize { X } } impl Foo<3> for () {}