mirror of https://github.com/rust-lang/rust.git
match match match match match
This commit is contained in:
parent
cee58fdc12
commit
55b7efe29f
|
@ -127,6 +127,21 @@ fn punch_card() -> impl std::fmt::Debug {
|
|||
..=.. ..=.. .. ..=..=.. ..=..=.. .. .. ..=.. ..
|
||||
}
|
||||
|
||||
fn r#match() {
|
||||
let val = match match match match match () {
|
||||
() => ()
|
||||
} {
|
||||
() => ()
|
||||
} {
|
||||
() => ()
|
||||
} {
|
||||
() => ()
|
||||
} {
|
||||
() => ()
|
||||
};
|
||||
assert_eq!(val, ());
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
strange();
|
||||
funny();
|
||||
|
@ -142,4 +157,5 @@ pub fn main() {
|
|||
union();
|
||||
special_characters();
|
||||
punch_card();
|
||||
r#match();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue