summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/match-bot.rs
blob: 5c4472c7aea67940b28b75d943c47b8efee431f8 (plain)
1
2
3
4
5
6
7
// run-pass

pub fn main() {
    let i: isize =
        match Some::<isize>(3) { None::<isize> => { panic!() } Some::<isize>(_) => { 5 } };
    println!("{}", i);
}