Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
12 lines
183 B
Rust
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; }
|