013fc92423
This reverts commit 7ef825bb60
.
14 lines
215 B
Rust
14 lines
215 B
Rust
// exec-env:RUST_POISON_ON_FREE=1
|
|
|
|
fn switcher(x: option<@int>) {
|
|
let mut x = x;
|
|
alt x {
|
|
some(@y) { copy y; x = none; }
|
|
none { }
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
switcher(none);
|
|
switcher(some(@3));
|
|
} |