2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-09 14:17:22 -05:00
|
|
|
// When all branches of a match expression result in panic, the entire
|
|
|
|
// match expression results in panic.
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-08-17 10:37:42 -05:00
|
|
|
let _x =
|
2012-08-06 14:34:08 -05:00
|
|
|
match true {
|
2015-01-25 15:05:03 -06:00
|
|
|
true => { 10 }
|
2014-10-09 14:17:22 -05:00
|
|
|
false => { match true { true => { panic!() } false => { panic!() } } }
|
2011-06-15 13:19:50 -05:00
|
|
|
};
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|