]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/multiple-lifetimes/fn-ptr.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / async-await / multiple-lifetimes / fn-ptr.rs
1 // edition:2018
2 // run-pass
3
4 // Test that we can use async fns with multiple arbitrary lifetimes.
5
6 async fn multiple_named_lifetimes<'a, 'b>(_: &'a u8, _: &'b u8, _: fn(&u8)) {}
7
8 fn gimme(_: &u8) { }
9
10 fn main() {
11     let _ = multiple_named_lifetimes(&22, &44, gimme);
12 }