9270: minor: Add assoc type in trait bound completion test r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
bors[bot] 2021-06-14 16:17:55 +00:00 committed by GitHub
commit 401d79ac06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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