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

15 lines
353 B
Plaintext

error: generic parameters with a default must be trailing
--> $DIR/wrong-order.rs:1:10
|
LL | struct A<T = u32, const N: usize> {
| ^
error: generic parameters with a default must be trailing
--> $DIR/wrong-order.rs:6:18
|
LL | struct Foo<const N: u8 = 3, T>(T);
| ^
error: aborting due to 2 previous errors