blob: 3912b854747de903e3fa71f5a52600ea0bcf19c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// edition:2018
// run-pass
// Test that we can use async fns with multiple arbitrary lifetimes.
async fn multiple_named_lifetimes<'a, 'b>(_: &'a u8, _: &'b u8, _: fn(&u8)) {}
fn gimme(_: &u8) { }
fn main() {
let _ = multiple_named_lifetimes(&22, &44, gimme);
}
|