summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/wrong-order.stderr
blob: 143ce5c4fea7ed7512c58b18bcfcc6fbc6823ef1 (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:3:10
   |
LL | struct A<T = u32, const N: usize> {
   |          ^

error: generic parameters with a default must be trailing
  --> $DIR/wrong-order.rs:8:18
   |
LL | struct Foo<const N: u8 = 3, T>(T);
   |                  ^

error: aborting due to 2 previous errors