/src/test/run-fail/expr-alt-fail.rs
http://github.com/jruderman/rust · Rust · 5 lines · 1 code · 3 blank · 1 comment · 1 complexity · a895c63323a53d23435bab6dd62253d9 MD5 · raw file
- // error-pattern:explicit failure
- fn main() { let x = match true { false => { 0 } true => { fail } }; }