//[full] run-pass // Verifies that having generic parameters after constants is not permitted without the // `const_generics` feature. // revisions: min full #![cfg_attr(full, feature(const_generics))] #![cfg_attr(full, allow(incomplete_features))] struct A(T); //[min]~^ ERROR type parameters must be declared prior fn main() { let _: A<3> = A(0); }