Skip to content

Commit 40a2170

Browse files
dtolnaypetrochenkov
authored andcommitted
Add test of tuple nested indexing
1 parent 8e256b1 commit 40a2170

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/tuple/nested-index.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// run-pass
2+
3+
fn main () {
4+
let n = (1, (2, 3)).1.1;
5+
assert_eq!(n, 3);
6+
}

0 commit comments

Comments
 (0)