]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/wrong-order.stderr
Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk
[rust.git] / tests / ui / const-generics / defaults / wrong-order.stderr
1 error: generic parameters with a default must be trailing
2   --> $DIR/wrong-order.rs:1:10
3    |
4 LL | struct A<T = u32, const N: usize> {
5    |          ^
6
7 error: generic parameters with a default must be trailing
8   --> $DIR/wrong-order.rs:6:18
9    |
10 LL | struct Foo<const N: u8 = 3, T>(T);
11    |                  ^
12
13 error: aborting due to 2 previous errors
14