mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-14 23:05:14 +00:00
13 lines
218 B
Rust
13 lines
218 B
Rust
//@ 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;
|
|
}
|