]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/variance/variance-invariant-arg-trait-match.rs
4 fn get(&self, t
: T
) -> T
;
7 fn get_min_from_max
<'min
, 'max
, G
>()
8 where 'max
: 'min
, G
: Get
<&'max
i32>
10 impls_get
::<G
,&'min
i32>()
11 //~^ ERROR lifetime may not live long enough
14 fn get_max_from_min
<'min
, 'max
, G
>()
15 where 'max
: 'min
, G
: Get
<&'min
i32>
17 impls_get
::<G
,&'max
i32>()
18 //~^ ERROR lifetime may not live long enough
21 fn impls_get
<G
,T
>() where G
: Get
<T
> { }