]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-non-trailing-defaults.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / generic / generic-non-trailing-defaults.rs
1 struct Heap;
2
3 struct Vec<A = Heap, T>(A, T);
4 //~^ ERROR type parameters with a default must be trailing
5
6 struct Foo<A, B = Vec<C>, C>(A, B, C);
7 //~^ ERROR type parameters with a default must be trailing
8 //~| ERROR type parameters with a default cannot use forward declared identifiers
9
10 fn main() {}