rust/src/test/run-fail/result-get-fail.rs

5 lines
131 B
Rust
Raw Normal View History

2012-06-18 23:01:56 -05:00
// error-pattern:get called on error result: ~"kitty"
fn main() {
2012-09-25 18:23:04 -05:00
log(error, result::get(&result::Err::<int,~str>(~"kitty")));
2012-06-18 23:01:56 -05:00
}