]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/wrong-order.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / const-generics / defaults / wrong-order.rs
1 struct A<T = u32, const N: usize> {
2     //~^ ERROR generic parameters with a default must be trailing
3     arg: T,
4 }
5
6 struct Foo<const N: u8 = 3, T>(T);
7 //~^ error: generic parameters with a default must be trailing
8
9 fn main() {}