Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
match
/
postfix-match
/
pf-match-chain.rs
blob: 80546e1963bb60373559f5ae7ee00aa39a6c483e [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
feature
(
postfix_match
)]
fn
main
()
{
1.match
{
2
=>
Some
(
0
),
_
=>
None
,
}.
match
{
None
=>
Ok
(
true
),
Some
(
_
)
=>
Err
(
"nope"
)
}.
match
{
Ok
(
_
)
=>
(),
Err
(
_
)
=>
panic
!()
}
}