summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/multiple-lifetimes/partial-relation.rs
blob: 02b105999f5bb2e55d4b0e98fe60961a48349ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// edition:2018
// run-pass

async fn lotsa_lifetimes<'a, 'b, 'c>(a: &'a u32, b: &'b u32, c: &'c u32) -> (&'a u32, &'b u32)
    where 'b: 'a
{
    drop((a, c));
    (b, b)
}

fn main() {
    let _ = lotsa_lifetimes(&22, &44, &66);
}