mirror of https://github.com/rust-lang/rust
16 lines
303 B
Rust
16 lines
303 B
Rust
//@ check-pass
|
|
|
|
// Show that precise captures allow us to skip a lifetime param for outlives
|
|
|
|
#![feature(lifetime_capture_rules_2024)]
|
|
|
|
fn hello<'a: 'a, 'b: 'b>() -> impl Sized + use<'a> { }
|
|
|
|
fn outlives<'a, T: 'a>(_: T) {}
|
|
|
|
fn test<'a, 'b>() {
|
|
outlives::<'a, _>(hello::<'a, 'b>());
|
|
}
|
|
|
|
fn main() {}
|