about summary refs log tree commit diff
path: root/tests/ui/match/match-disc-bot.rs
blob: d65dc5aea0753e8fba5a2f4c0da710bf1fca44f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-fail
//@ error-pattern:quux
//@ needs-subprocess

fn f() -> ! {
    panic!("quux")
}
fn g() -> isize {
    match f() {
        true => 1,
        false => 0,
    }
}
fn main() {
    g();
}