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