]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/multiple-lifetimes/partial-relation.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / async-await / multiple-lifetimes / partial-relation.rs
1 // edition:2018
2 // run-pass
3
4 async fn lotsa_lifetimes<'a, 'b, 'c>(a: &'a u32, b: &'b u32, c: &'c u32) -> (&'a u32, &'b u32)
5     where 'b: 'a
6 {
7     drop((a, c));
8     (b, b)
9 }
10
11 fn main() {
12     let _ = lotsa_lifetimes(&22, &44, &66);
13 }