Skip to content

Commit

Permalink
Test a range, which is not nested indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay authored and petrochenkov committed Jul 2, 2020
1 parent 0432f63 commit 776deb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/tuple/nested-index.rs
Expand Up @@ -6,4 +6,7 @@ fn main () {

let n = (1, (2, (3, 4))).1.1.1;
assert_eq!(n, 4);

// This is a range expression, not nested indexing.
let _ = 0.0..1.1;
}

0 comments on commit 776deb6

Please sign in to comment.