rust/tests/ui/async-await/multiple-lifetimes/partial-relation.rs

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

14 lines
233 B
Rust
Raw Normal View History

// 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);
}