Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
tuple
/
nested-index.rs
blob: a3232d6fc361e8a7de04ecbcc6dcdf68d58aff52 [
file
] [
log
] [
blame
]
// run-pass
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
);
// This is a range expression, not nested indexing.
let
_
=
0.0
..
1.1
;
}