Add completion test

This commit is contained in:
Jonas Schievink 2022-05-04 17:10:53 +02:00
parent 2a755495d0
commit 90bd99f1bb

View File

@ -785,4 +785,24 @@ fn main() {
",
)
}
#[test]
fn tuple_index_completion() {
check(
r#"
struct I;
impl I {
fn i_method(&self) {}
}
struct S((), I);
fn f(s: S) {
s.1.$0
}
"#,
expect![[r#"
me i_method() fn(&self)
"#]],
);
}
}