mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add assoc type in trait bound completion test
This commit is contained in:
parent
388a91c8a8
commit
5558e11282
1 changed files with 18 additions and 0 deletions
|
@ -809,4 +809,22 @@ fn foo(_: impl Foo<B$0>) {}
|
||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn completes_assoc_types_in_trait_bound() {
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
trait Foo {
|
||||||
|
type Bar;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn foo<T: Foo<B$0>>(_: T) {}
|
||||||
|
"#,
|
||||||
|
expect![[r#"
|
||||||
|
ta Bar = type Bar;
|
||||||
|
tp T
|
||||||
|
tt Foo
|
||||||
|
"#]],
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue