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

11 lines
117 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
// Issue #51.
type point = rec(int x, int y);
fn main() {
let point p = rec(x=10);
log p.y;
}