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

5 lines
130 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-08-26 18:54:31 -05:00
log(error, result::get(result::Err::<int,~str>(~"kitty")));
2012-06-18 23:01:56 -05:00
}