1 error: generic parameters with a default must be trailing
2 --> $DIR/generic-non-trailing-defaults.rs:3:12
4 LL | struct Vec<A = Heap, T>(A, T);
7 error: generic parameters with a default must be trailing
8 --> $DIR/generic-non-trailing-defaults.rs:6:15
10 LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
13 error[E0128]: generic parameters with a default cannot use forward declared identifiers
14 --> $DIR/generic-non-trailing-defaults.rs:6:23
16 LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
17 | ^ defaulted generic parameters cannot be forward declared
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0128`.