]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/variance/variance-use-covariant-struct-2.rs
1 // Test that a covariant struct permits the lifetime of a reference to
5 // build-pass (FIXME(62277): could be check-pass?)
7 struct SomeStruct
<T
>(T
);
9 fn foo
<'min
,'max
>(v
: SomeStruct
<&'
max ()>)
10 -> SomeStruct
<&'
min ()>