mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
15 lines
237 B
Rust
15 lines
237 B
Rust
//@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() {}
|