]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-92096.rs
3 use std
::future
::Future
;
6 type Connecting
<'a
>: Future
+ Send
10 fn connect(&'_
self) -> Self::Connecting
<'_
>;
13 fn call_connect
<C
>(c
: &'_ C
) -> impl '_
+ Future
+ Send
15 C
: Client
+ Send
+ Sync
,
17 async
move { c.connect().await }
18 //~^ ERROR `C` does not live long enough
20 // FIXME(#71723). This is because we infer at some point a value of
22 // impl Future<Output = <C as Client>::Connection<'_>>
24 // and then we somehow fail the WF check because `where C: 'a` is not known,
25 // but I'm not entirely sure how that comes about.