mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 04:03:11 +00:00
Merge #9270
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:
commit
401d79ac06
@ -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…
Reference in New Issue
Block a user