2018-06-25 22:04:08 -05:00
|
|
|
// edition:2018
|
2019-09-01 16:30:19 -05:00
|
|
|
// check-pass
|
2018-06-06 17:50:59 -05:00
|
|
|
|
2019-06-12 09:47:04 -05:00
|
|
|
// Test that we can use async fns with multiple arbitrary lifetimes.
|
|
|
|
|
2018-06-06 17:50:59 -05:00
|
|
|
use std::ops::Add;
|
|
|
|
|
|
|
|
async fn multiple_hrtb_and_single_named_lifetime_ok<'c>(
|
|
|
|
_: impl for<'a> Add<&'a u8>,
|
|
|
|
_: impl for<'b> Add<&'b u8>,
|
|
|
|
_: &'c u8,
|
|
|
|
) {}
|
|
|
|
|
|
|
|
fn main() {}
|