We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a75549 commit 90bd99fCopy full SHA for 90bd99f
crates/ide-completion/src/completions/dot.rs
@@ -785,4 +785,24 @@ fn main() {
785
",
786
)
787
}
788
+
789
+ #[test]
790
+ fn tuple_index_completion() {
791
+ check(
792
+ r#"
793
+struct I;
794
+impl I {
795
+ fn i_method(&self) {}
796
+}
797
+struct S((), I);
798
799
+fn f(s: S) {
800
+ s.1.$0
801
802
+"#,
803
+ expect![[r#"
804
+ me i_method() fn(&self)
805
+ "#]],
806
+ );
807
+ }
808
0 commit comments