rust/src/test/run-pass/issue-980.rs
2012-03-26 18:35:18 -07:00

14 lines
183 B
Rust

enum maybe_pointy {
no_pointy,
yes_pointy(@pointy),
}
type pointy = {
mut x : maybe_pointy
};
fn main() {
let m = @{ mut x : no_pointy };
m.x = yes_pointy(m);
}