6 // Tests for using match as an expression
9 let mut rs: bool = match true { true => { true } false => { false } };
11 rs = match false { true => { false } false => { true } };
15 fn test_inferrence() {
16 let rs = match true { true => { true } false => { false } };
20 fn test_alt_as_alt_head() {
21 // Yeah, this is kind of confusing ...
24 match match false { true => { true } false => { false } } {
31 fn test_alt_as_block_result() {
35 false => { match true { true => { true } false => { false } } }
43 test_alt_as_alt_head();
44 test_alt_as_block_result();