mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
13 lines
272 B
Rust
13 lines
272 B
Rust
//@ 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);
|
|
}
|