Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
tuple
/
nested-index.rs
blob: fc967873d3519726665f9988d57d4bff71991015 [
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
;
}