rust/src/test/run-pass/use-uninit-alt2.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

12 lines
183 B
Rust

fn foo<T>(o: myoption<T>) -> int {
let x: int;
alt o { none::<T>. { fail; } some::<T>(t) { x = 5; } }
ret x;
}
tag myoption<T> { none; some(T); }
fn main() { log 5; }