rust/src/test/run-fail/result-get-fail.rs
2012-06-18 21:01:56 -07:00

5 lines
128 B
Rust

// error-pattern:get called on error result: ~"kitty"
fn main() {
log(error, result::get(result::err::<int,str>("kitty")));
}