]>
git.proxmox.com Git - rustc.git/blob - tests/ui/generic-associated-types/issue-86218.rs
3 #![feature(impl_trait_in_assoc_type)]
13 trait Yay
<AdditionalValue
> {
14 type InnerStream
<'s
>: Stream
<Item
= i32> + 's
;
15 fn foo
<'s
>() -> Self::InnerStream
<'s
>;
18 impl<'a
> Yay
<&'
a ()> for () {
19 type InnerStream
<'s
> = impl Stream
<Item
= i32> + 's
;
20 //^ ERROR does not fulfill the required lifetime
21 fn foo
<'s
>() -> Self::InnerStream
<'s
> {