rust/tests/ui/const-generics/defaults/wrong-order.rs
2023-01-11 09:32:08 +00:00

10 lines
229 B
Rust

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() {}