Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
run-fail
/
result-get-panic.rs
blob: cddf20ee49df3e9baeb8f315febd596c5f0f4c49 [
file
] [
log
] [
blame
]
// error-pattern:called `Result::unwrap()` on an `Err` value
use
std
::
result
::
Result
::
Err
;
fn
main
()
{
println
!(
"{}"
,
Err
::<
isize
,
String
>(
"kitty"
.
to_string
()).
unwrap
());
}