summary refs log tree commit diff
path: root/tests/ui/async-await/pin-reborrow-shorter.rs
blob: 06c266e0035fbbc7d0c04cdd5d5f90acc73a10a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@check-pass

#![feature(pin_ergonomics)]
#![allow(dead_code, incomplete_features)]

use std::pin::Pin;

fn shorter<'b, T: 'b>(_: Pin<&'b mut T>) {}

fn test<'a: 'b, 'b, T: 'a>(x: Pin<&'a mut T>) {
    shorter::<'b>(x);
}

fn main() {}