summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs')
-rw-r--r--src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs b/src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
new file mode 100644
index 000000000..1c369fd74
--- /dev/null
+++ b/src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
@@ -0,0 +1,15 @@
+// Check that `async fn` inside of an impl with `'_`
+// in the header compiles correctly.
+//
+// Regression test for #63500.
+//
+// check-pass
+// edition:2018
+
+struct Foo<'a>(&'a u8);
+
+impl Foo<'_> {
+ async fn bar() {}
+}
+
+fn main() { }