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
280 B
Rust
Raw Permalink Normal View History

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