]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generics/generic-non-trailing-defaults.rs
Update upstream source from tag 'upstream/1.49.0_beta.4+dfsg1'
[rustc.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() {}