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);
|
2021-03-01 05:50:09 -06:00
|
|
|
//~^ ERROR generic 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);
|
2021-03-01 05:50:09 -06:00
|
|
|
//~^ ERROR generic parameters with a default must be trailing
|
2021-04-18 06:57:22 -05:00
|
|
|
//~| ERROR generic parameters with a default cannot use
|
2014-01-30 11:28:02 -06:00
|
|
|
|
|
|
|
fn main() {}
|