diff options
Diffstat (limited to 'tests/ui/async-await/multiple-lifetimes/elided.rs')
-rw-r--r-- | tests/ui/async-await/multiple-lifetimes/elided.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/async-await/multiple-lifetimes/elided.rs b/tests/ui/async-await/multiple-lifetimes/elided.rs new file mode 100644 index 000000000..8258e2eff --- /dev/null +++ b/tests/ui/async-await/multiple-lifetimes/elided.rs @@ -0,0 +1,10 @@ +// edition:2018 +// run-pass + +// Test that we can use async fns with multiple arbitrary lifetimes. + +async fn multiple_elided_lifetimes(_: &u8, _: &u8) {} + +fn main() { + let _ = multiple_elided_lifetimes(&22, &44); +} |