2020-04-16 15:50:32 +09:00
|
|
|
// run-fail
|
2013-12-06 22:23:23 +01:00
|
|
|
// error-pattern:called `Result::unwrap()` on an `Err` value
|
2020-05-08 00:39:02 +09:00
|
|
|
// ignore-emscripten no processes
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2014-11-28 11:57:41 -05:00
|
|
|
use std::result::Result::Err;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2012-04-12 20:24:07 -07:00
|
|
|
fn main() {
|
2016-05-27 08:09:36 +05:30
|
|
|
println!("{}", Err::<isize, String>("kitty".to_string()).unwrap());
|
2012-06-18 21:01:56 -07:00
|
|
|
}
|