]>
git.proxmox.com Git - rustc.git/blob - tests/ui/error-codes/E0657.rs
6 impl<'a
> Lt
<'a
> for () {}
9 fn free_fn_capture_hrtb_in_impl_trait()
10 -> Box
<for<'a
> Id
<impl Lt
<'a
>>>
11 //~^ ERROR `impl Trait` can only capture lifetimes bound at the fn or impl level [E0657]
18 fn impl_fn_capture_hrtb_in_impl_trait()
19 -> Box
<for<'a
> Id
<impl Lt
<'a
>>>
20 //~^ ERROR `impl Trait` can only capture lifetimes bound at the fn or impl level