rust/src/test/run-pass/regions-self-in-enums.rs
Niko Matsakis b9aa9def85 infer when types are region parameterized rather than requiring /&
- removes various fields from various variants in the AST
- also update tests not to use this notation
2012-07-11 14:41:41 -07:00

15 lines
214 B
Rust

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