rust/tests/ui/lifetimes/issue-76168-hr-outlives-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
341 B
Rust
Raw Normal View History

2022-05-27 20:09:06 +00:00
//@ edition:2018
//@ check-pass
trait Trait<Input> {
type Output;
}
async fn walk<F>(filter: F)
where
for<'a> F: Trait<&'a u32> + 'a,
for<'a> <F as Trait<&'a u32>>::Output: 'a,
{
}
async fn walk2<F: 'static>(filter: F)
where
for<'a> F: Trait<&'a u32> + 'a,
for<'a> <F as Trait<&'a u32>>::Output: 'a,
{
}
fn main() {}