summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/multiple-lifetimes/hrtb.rs
blob: e788ca5ff49c32a20cbabe1b0839048f2514e0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}