Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch19-advanced-features
/
no-listing-08-match-arms-different-types
/
src
/
main.rs
blob: 6d56008add2912f7ec9b1421b4da4dea751658ba [
file
] [
log
] [
blame
]
fn
main
()
{
let
guess
=
"3"
;
// ANCHOR: here
let
guess
=
match
guess
.
trim
().
parse
()
{
Ok
(
_
)
=>
5
,
Err
(
_
)
=>
"hello"
,
};
// ANCHOR_END: here
}