mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
15 lines
353 B
Plaintext
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
|
|
|