//@ [full] check-pass //@ revisions: full min #![cfg_attr(full, feature(adt_const_params))] #![cfg_attr(full, allow(incomplete_features))] struct Bar(T); impl Bar { const fn value() -> usize { 42 } } struct Foo::value()]>; //[min]~^ ERROR `[u8; Bar::::value()]` is forbidden as the type of a const generic parameter fn main() {}