summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-missing-ret2.rs
blob: 932372c2c0bcb4de37e35823bb0df19813b764ca (plain)
1
2
3
4
5
6
7
8
9
// error-pattern: not all control paths return a value

fn f() -> int {
    // Make sure typestate doesn't interpreturn this match expression
    // as the function result
   match true { true => { } _ => {} };
}

fn main() { }