rust-lang/rust — pull request #16866 by P1start (2014-08-30 02:18:54+00:00)
Title: [Waiting on RFC] Implement tuple and tuple struct indexing

This allows code to access the fields of tuples and tuple structs behind the feature gate `tuple_indexing`:

```rust
#![feature(tuple_indexing)]

let x = (1i, 2i);
assert_eq!(x.1, 2);

struct Point(int, int);
let origin = Point(0, 0);
assert_eq!(origin.0, 0);
assert_eq!(origin.1, 0);
```

Implements rust-lang/rfcs#184.