rust/tests/ui/async-await/multiple-lifetimes/hrtb.rs
2023-01-11 09:32:08 +00:00

15 lines
278 B
Rust

// edition:2018
// check-pass
// Test that we can use async fns with multiple arbitrary lifetimes.
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() {}