rust/src/test/run-pass/use-uninit-alt.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
182 B
Rust

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