mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
11 lines
279 B
Rust
11 lines
279 B
Rust
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() {}
|