rust/src/test/run-pass/readalias.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

10 lines
157 B
Rust

// -*- rust -*-
type point = {x: int, y: int, z: int};
fn f(p: point) { assert (p.z == 12); }
fn main() { let x: point = {x: 10, y: 11, z: 12}; f(x); }