rust/src/test/run-pass/alt-bot.rs
2011-08-16 15:05:57 -07:00

11 lines
162 B
Rust

use std;
import std::option::*;
fn main() {
let i: int = alt some::<int>(3) {
none::<int>. { fail }
some::<int>(_) { 5 }
};
log i;
}