/src/test/run-pass/simple-alt-generic-tag.rs

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

  1. enum opt<T> { none, }
  2. fn main() {
  3. let x = none::<int>;
  4. match x { none::<int> => { debug!{"hello world"}; } }
  5. }