summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/defaults/wrong-order.rs
blob: d53d56f41e6666c3f7c9086589f14fde957ce23e (plain)
1
2
3
4
5
6
7
8
9
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() {}