Add test of tuple nested indexing
This commit is contained in:
parent
8e256b19d5
commit
40a21707b4
6
src/test/ui/tuple/nested-index.rs
Normal file
6
src/test/ui/tuple/nested-index.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// run-pass
|
||||
|
||||
fn main () {
|
||||
let n = (1, (2, 3)).1.1;
|
||||
assert_eq!(n, 3);
|
||||
}
|
Loading…
Reference in New Issue
Block a user