/src/test/run-pass/drop-on-empty-block-exit.rs

http://github.com/jruderman/rust · Rust · 5 lines · 2 code · 3 blank · 0 comment · 1 complexity · 0c90a2fc04a304843d0ce97cb6eb80d1 MD5 · raw file

  1. enum t { foo(@int), }
  2. fn main() { let tt = foo(@10); match tt { foo(z) => { } } }