mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
10 lines
223 B
Rust
10 lines
223 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
|
|
|
|
fn main() {}
|