PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-fail/expr-alt-fail-fn.rs

http://github.com/jruderman/rust
Rust | 9 lines | 3 code | 5 blank | 1 comment | 0 complexity | a41a61404981a1aca50a16ea3549f7e8 MD5 | raw file
1
2
3
4// error-pattern:explicit failure
5fn f() -> ! { fail }
6
7fn g() -> int { let x = match true { true => { f() } false => { 10 } }; return x; }
8
9fn main() { g(); }