Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/regression.rs')
-rw-r--r--crates/hir-ty/src/tests/regression.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/hir-ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs
index c5bf521d35..2ef8999817 100644
--- a/crates/hir-ty/src/tests/regression.rs
+++ b/crates/hir-ty/src/tests/regression.rs
@@ -2935,3 +2935,15 @@ impl Foo for Bar {
"#,
);
}
+
+#[test]
+fn regression_unresolved_deferred_closure_call_resolution() {
+ check_no_mismatches(
+ r#"
+//- minicore: fn
+fn caller() {
+ let _: &[u8] = &(|| encode_fn())();
+}
+"#,
+ );
+}