15 lines
219 B
Rust
15 lines
219 B
Rust
enum int_wrapper {
|
|
int_wrapper_ctor(&int)
|
|
}
|
|
|
|
fn main() {
|
|
let x = 3;
|
|
let y = int_wrapper_ctor(&x);
|
|
let mut z : ∫
|
|
match y {
|
|
int_wrapper_ctor(zz) => { z = zz; }
|
|
}
|
|
log(debug, *z);
|
|
}
|
|
|