mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Add completion test
This commit is contained in:
parent
2a755495d0
commit
90bd99f1bb
@ -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)
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user