2 // build-pass (FIXME(62277): could be check-pass?
5 impl<T> Trait<'_, '_> for T {}
7 // Test case where we have elision in the impl trait and we have to
8 // pick the right region.
10 // Ultimately `Trait<'x, 'static>`.
11 fn upper_bounds1(a: &u8) -> impl Trait<'_, 'static> {
15 // Ultimately `Trait<'x, 'x>`, so not really multiple bounds.
16 fn upper_bounds2(a: &u8) -> impl Trait<'_, '_> {
20 // Kind of a weird annoying case.
21 fn upper_bounds3<'b>(a: &u8) -> impl Trait<'_, 'b> {