Skip to content

Commit 776deb6

Browse files
dtolnaypetrochenkov
authored andcommitted
Test a range, which is not nested indexing
1 parent 0432f63 commit 776deb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ fn main () {
66

77
let n = (1, (2, (3, 4))).1.1.1;
88
assert_eq!(n, 4);
9+
10+
// This is a range expression, not nested indexing.
11+
let _ = 0.0..1.1;
912
}

0 commit comments

Comments
 (0)