rust/tests/ui/liveness/liveness-missing-ret2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
198 B
Rust
Raw Normal View History

fn f() -> isize { //~ ERROR mismatched types
// Make sure typestate doesn't interpret this match expression as
// the function result
2012-08-23 21:44:58 +00:00
match true { true => { } _ => {} };
}
2011-07-27 12:19:39 +00:00
fn main() { }