fc6b7c8b38
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
18 lines
378 B
Rust
18 lines
378 B
Rust
|
|
|
|
fn id<@T>(t: T) -> T { ret t; }
|
|
|
|
fn main() {
|
|
let t = {_0: 1, _1: 2, _2: 3, _3: 4, _4: 5, _5: 6, _6: 7};
|
|
assert (t._5 == 6);
|
|
let f1 =
|
|
bind id::<{_0: int,
|
|
_1: int,
|
|
_2: int,
|
|
_3: int,
|
|
_4: int,
|
|
_5: int,
|
|
_6: int}>(_);
|
|
assert (f1(t)._5 == 6);
|
|
}
|