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