68a58f255a
Co-authored-by: Josh Stone <jistone@redhat.com>
17 lines
250 B
Rust
17 lines
250 B
Rust
//@ run-pass
|
|
|
|
#![feature(postfix_match)]
|
|
|
|
fn main() {
|
|
1.match {
|
|
2 => Some(0),
|
|
_ => None,
|
|
}.match {
|
|
None => Ok(true),
|
|
Some(_) => Err("nope")
|
|
}.match {
|
|
Ok(_) => (),
|
|
Err(_) => panic!()
|
|
}
|
|
}
|