Add assoc type in trait bound completion test

This commit is contained in:
Lukas Wirth 2021-06-14 18:17:21 +02:00
parent 388a91c8a8
commit 5558e11282

View File

@ -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
"#]],
);
}
}