Sign in
android
/
toolchain
/
rustc
/
5a9405fdae034de7a7f28574bd24a2cd4fef1689
/
.
/
tests
/
ui
/
async-await
/
pin-reborrow-shorter.rs
blob: 06c266e0035fbbc7d0c04cdd5d5f90acc73a10a8 [
file
] [
log
] [
blame
]
//@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
()
{}