mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
257 B
Rust
17 lines
257 B
Rust
|
enum int_wrapper {
|
||
|
int_wrapper_ctor(&int)
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
unsafe {
|
||
|
let x = 3;
|
||
|
let y = int_wrapper_ctor(&x);
|
||
|
let z : ∫
|
||
|
alt y {
|
||
|
int_wrapper_ctor(zz) { z = zz; }
|
||
|
}
|
||
|
log(debug, *z);
|
||
|
}
|
||
|
}
|
||
|
|