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.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/hir-ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs
index 01862aa2a3..d6e034b018 100644
--- a/crates/hir-ty/src/tests/regression.rs
+++ b/crates/hir-ty/src/tests/regression.rs
@@ -2195,3 +2195,19 @@ impl<'a, T: Deref<Target = impl Trait>> Struct<'a, T> {
"#]],
);
}
+
+#[test]
+fn issue_17767() {
+ check_infer(
+ r#"
+extern "C" {
+ type Foo<T>;
+}
+
+fn f() -> Foo {}
+"#,
+ expect![[r#"
+ 47..49 '{}': Foo
+ "#]],
+ );
+}