// revisions: full min #![cfg_attr(full, feature(adt_const_params))] #![cfg_attr(full, allow(incomplete_features))] struct Foo; impl Foo { fn value() -> usize { N } } Foo::<17>::value() //~^ ERROR cannot call non-const fn }]>; fn main() {}