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

/src/test/compile-fail/rec-missing-fields.rs

http://github.com/jruderman/rust
Rust | 9 lines | 2 code | 4 blank | 3 comment | 0 complexity | ae6a7e60861108b049440fd988732cc7 MD5 | raw file
1// -*- rust -*-
2
3// error-pattern: mismatched types
4
5// Issue #51.
6
7type point = {x: int, y: int};
8
9fn main() { let p: point = {x: 10}; log(debug, p.y); }