rust/tests/ui/async-await/multiple-lifetimes/hrtb.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
278 B
Rust
Raw Normal View History

// edition:2018
// check-pass
2018-06-06 17:50:59 -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() {}