Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/simple.rs')
-rw-r--r--crates/hir-ty/src/tests/simple.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/hir-ty/src/tests/simple.rs b/crates/hir-ty/src/tests/simple.rs
index 1e75c31fa1..a8ace69017 100644
--- a/crates/hir-ty/src/tests/simple.rs
+++ b/crates/hir-ty/src/tests/simple.rs
@@ -4279,3 +4279,17 @@ union U {
"#]],
);
}
+
+#[test]
+fn async_closure_with_params() {
+ check_no_mismatches(
+ r#"
+fn foo() {
+ let capture = false;
+ async move |param: i32| {
+ capture;
+ };
+}
+ "#,
+ );
+}