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