rust/src/test/compile-fail/liveness-init-in-fru.rs
2012-09-04 15:47:04 -07:00

10 lines
198 B
Rust

// -*- rust -*-
type point = {x: int, y: int};
fn main() {
let mut origin: point;
origin = {x: 10,.. origin}; //~ ERROR use of possibly uninitialized variable: `origin`
copy origin;
}