PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/readalias.rs

http://github.com/jruderman/rust
Rust | 9 lines | 3 code | 5 blank | 1 comment | 1 complexity | bcd0e7eb3b5bd4499141339a3fff1c2c MD5 | raw file
1
2
3
4// -*- rust -*-
5type point = {x: int, y: int, z: int};
6
7fn f(p: point) { assert (p.z == 12); }
8
9fn main() { let x: point = {x: 10, y: 11, z: 12}; f(x); }