]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/wrong-order.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[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