]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-non-trailing-defaults.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / generics / 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() {}