summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/defaults/wrong-order.stderr
blob: 4d2628d034f3515ec22d78c0ed7beb6cb30a1b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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