summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/multiple-lifetimes/hrtb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/multiple-lifetimes/hrtb.rs')
-rw-r--r--tests/ui/async-await/multiple-lifetimes/hrtb.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/async-await/multiple-lifetimes/hrtb.rs b/tests/ui/async-await/multiple-lifetimes/hrtb.rs
new file mode 100644
index 000000000..e788ca5ff
--- /dev/null
+++ b/tests/ui/async-await/multiple-lifetimes/hrtb.rs
@@ -0,0 +1,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() {}