]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/multiple-lifetimes/named.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / async-await / multiple-lifetimes / named.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) {}
7
8 fn main() {
9     let _ = multiple_named_lifetimes(&22, &44);
10 }