]> git.lizzy.rs Git - rust.git/blob - src/test/ui/liveness/liveness-missing-ret2.rs
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / liveness / liveness-missing-ret2.rs
1 fn f() -> isize { //~ ERROR mismatched types
2     // Make sure typestate doesn't interpret this match expression as
3     // the function result
4    match true { true => { } _ => {} };
5 }
6
7 fn main() { }