]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/multiple-lifetimes/hrtb.rs
Rollup merge of #107108 - sulami:issue-83968-doc-alias-typo-suggestions, r=compiler...
[rust.git] / tests / ui / async-await / multiple-lifetimes / hrtb.rs
1 // edition:2018
2 // check-pass
3
4 // Test that we can use async fns with multiple arbitrary lifetimes.
5
6 use std::ops::Add;
7
8 async fn multiple_hrtb_and_single_named_lifetime_ok<'c>(
9     _: impl for<'a> Add<&'a u8>,
10     _: impl for<'b> Add<&'b u8>,
11     _: &'c u8,
12 ) {}
13
14 fn main() {}