Add test link to subtype

pull/368/head
lyj 3 years ago committed by GitHub
parent 3a43983b76
commit c089fba3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -452,3 +452,5 @@ struct MyType<'a, 'b, A: 'a, B: 'b, C, D, E, F, G, H, In, Out, Mixed> {
k2: Mixed, // invariant over Mixed, because invariance wins all conflicts
}
```
To debug variance of custom struct, see `src/test/ui/variance/variance-types.rs`.

Loading…
Cancel
Save