Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/inlay_hints.rs')
-rw-r--r--crates/ide/src/inlay_hints.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs
index a8a200a399..8f9e62d398 100644
--- a/crates/ide/src/inlay_hints.rs
+++ b/crates/ide/src/inlay_hints.rs
@@ -1032,4 +1032,23 @@ fn bar() {
"#,
);
}
+
+ #[test]
+ fn regression_19610() {
+ check(
+ r#"
+trait Trait {
+ type Assoc;
+}
+struct Foo<A>(A);
+impl<A: Trait<Assoc = impl Trait>> Foo<A> {
+ fn foo<'a, 'b>(_: &'a [i32], _: &'b [i32]) {}
+}
+
+fn bar() {
+ Foo::foo(&[1], &[2]);
+}
+"#,
+ );
+ }
}