]>
git.proxmox.com Git - rustc.git/blob - tests/ui/nll/ty-outlives/projection-body.rs
1 // Test that when we infer the lifetime to a subset of the fn body, it
6 #![allow(dropping_references)]
14 for<'x
> T
: MyTrait
<'x
>,
16 // Here the region `'c` in `<T as MyTrait<'c>>::Output` will be
17 // inferred to a subset of the fn body.
18 let x
= bar
::<T
::Output
>();
22 fn bar
<'a
, T
>() -> &'
a ()