blob: 9ba8184e058518a21501c2ffa7451b0a63d90a76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//[full] run-pass
// Verifies that having generic parameters after constants is not permitted without the
// `const_generics_defaults` feature.
// revisions: min full
#![cfg_attr(full, feature(const_generics_defaults))]
struct A<const N: usize, T=u32>(T);
//[min]~^ ERROR type parameters must be declared prior
fn main() {
let _: A<3> = A(0);
}
|