Add assoc type in trait bound completion test
This commit is contained in:
parent
388a91c8a8
commit
5558e11282
@ -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…
x
Reference in New Issue
Block a user