]>
git.proxmox.com Git - rustc.git/blob - tests/ui/generic-associated-types/issue-74684-1.rs
4 fn identity
<'a
>(t
: &'a
Self::F
<'a
>) -> &'a
Self::F
<'a
> { t }
11 fn bug
<'a
, T
: ?Sized
+ Fun
<F
<'a
> = [u8]>>(_
: Box
<T
>) -> &'
static T
::F
<'a
> {
13 let _x
= T
::identity(&a
);
14 //~^ ERROR: `a` does not live long enough