Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
cross-crate
/
auxiliary
/
xcrate_generic_fn_nested_return.rs
blob: 2ab23b4d7e45c2a1af7f024f2383b0c923dbff7f [
file
] [
log
] [
blame
]
pub
struct
Request
{
pub
id
:
String
,
pub
arg
:
String
,
}
pub
fn
decode
<
T
>()
->
Result
<
Request
,
()>
{
(||
{
Ok
(
Request
{
id
:
"hi"
.
to_owned
(),
arg
:
match
Err
(())
{
Ok
(
v
)
=>
v
,
Err
(
e
)
=>
return
Err
(
e
)
},
})
})()
}