rust/src/test/ui/generic/generic-non-trailing-defaults.rs
2018-12-25 21:08:33 -07:00

10 lines
299 B
Rust

struct Heap;
struct Vec<A = Heap, T>(A, T);
//~^ ERROR type parameters with a default must be trailing
struct Foo<A, B = Vec<C>, C>(A, B, C);
//~^ ERROR type parameters with a default must be trailing
//~| ERROR type parameters with a default cannot use forward declared identifiers
fn main() {}