2014-01-30 11:28:02 -06:00
|
|
|
struct Heap;
|
|
|
|
|
2017-01-25 14:01:11 -06:00
|
|
|
struct Vec<A = Heap, T>(A, T);
|
2017-01-17 12:18:29 -06:00
|
|
|
//~^ ERROR type parameters with a default must be trailing
|
2014-01-30 11:28:02 -06:00
|
|
|
|
2017-01-25 14:01:11 -06:00
|
|
|
struct Foo<A, B = Vec<C>, C>(A, B, C);
|
2017-01-17 12:18:29 -06:00
|
|
|
//~^ ERROR type parameters with a default must be trailing
|
|
|
|
//~| ERROR type parameters with a default cannot use forward declared identifiers
|
2014-01-30 11:28:02 -06:00
|
|
|
|
|
|
|
fn main() {}
|