Test even deeper nested indexing

This commit is contained in:
David Tolnay 2020-03-26 00:57:39 -07:00 committed by Vadim Petrochenkov
parent 40a21707b4
commit 0432f63acf

View file

@ -3,4 +3,7 @@
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, 3);
let n = (1, (2, (3, 4))).1.1.1;
assert_eq!(n, 4);
}