/src/test/run-pass/nested-alts.rs
http://github.com/jruderman/rust · Rust · 15 lines · 12 code · 3 blank · 0 comment · 2 complexity · 20b220a7a36b09d2ff63d2d959bf7401 MD5 · raw file
- fn baz() -> ! { fail; }
- fn foo() {
- match some::<int>(5) {
- some::<int>(x) => {
- let mut bar;
- match none::<int> { none::<int> => { bar = 5; } _ => { baz(); } }
- log(debug, bar);
- }
- none::<int> => { debug!{"hello"}; }
- }
- }
- fn main() { foo(); }