/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
- enum opt<T> { none, }
- fn main() {
- let x = none::<int>;
- match x { none::<int> => { debug!{"hello world"}; } }
- }