rust/src/test/run-pass/regions-self-in-enums.rs
2012-03-14 16:18:33 -07:00

15 lines
210 B
Rust

enum int_wrapper {
int_wrapper_ctor(&int)
}
fn main() {
let x = 3;
let y = int_wrapper_ctor(&x);
let z : ∫
alt y {
int_wrapper_ctor(zz) { z = zz; }
}
log(debug, *z);
}