about summary refs log tree commit diff
path: root/tests/ui/async-await/issues/issue-58885.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issues/issue-58885.rs')
-rw-r--r--tests/ui/async-await/issues/issue-58885.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/async-await/issues/issue-58885.rs b/tests/ui/async-await/issues/issue-58885.rs
new file mode 100644
index 00000000000..11920b07243
--- /dev/null
+++ b/tests/ui/async-await/issues/issue-58885.rs
@@ -0,0 +1,19 @@
+// check-pass
+// edition:2018
+
+struct Xyz {
+    a: u64,
+}
+
+trait Foo {}
+
+impl Xyz {
+    async fn do_sth<'a>(
+        &'a self, foo: &'a dyn Foo
+    ) -> bool
+    {
+        true
+    }
+}
+
+fn main() {}