2020-03-26 00:17:41 -07:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
fn main () {
|
|
|
|
let n = (1, (2, 3)).1.1;
|
|
|
|
assert_eq!(n, 3);
|
2020-03-26 00:57:39 -07:00
|
|
|
|
|
|
|
let n = (1, (2, (3, 4))).1.1.1;
|
|
|
|
assert_eq!(n, 4);
|
2020-03-26 00:59:47 -07:00
|
|
|
|
|
|
|
// This is a range expression, not nested indexing.
|
|
|
|
let _ = 0.0..1.1;
|
2020-03-26 00:17:41 -07:00
|
|
|
}
|