blob: 8d9883dc7a9393daa1d01b5fc56fcfb34980f803 (
plain)
1
2
3
4
5
6
7
8
9
10
|
struct Heap;
struct Vec<A = Heap, T>(A, T);
//~^ ERROR type parameters with a default must be trailing
struct Foo<A, B = Vec<C>, C>(A, B, C);
//~^ ERROR type parameters with a default must be trailing
//~| ERROR type parameters with a default cannot use forward declared identifiers
fn main() {}
|