rust/src/test/run-pass/regions-self-in-enums.rs

15 lines
219 B
Rust
Raw Normal View History

enum int_wrapper {
int_wrapper_ctor(&int)
}
fn main() {
let x = 3;
let y = int_wrapper_ctor(&x);
let mut z : ∫
2012-08-06 14:34:08 -05:00
match y {
2012-08-03 21:59:04 -05:00
int_wrapper_ctor(zz) => { z = zz; }
}
log(debug, *z);
}