blob: 94e7367b1fb765d9ecfa53aae01883d380046612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(const_generics_defaults)]
struct A<T = u32, const N: usize> {
//~^ ERROR generic parameters with a default must be trailing
arg: T,
}
struct Foo<const N: u8 = 3, T>(T);
//~^ error: generic parameters with a default must be trailing
fn main() {}
|