rust/src/test/run-pass/impl-implicit-trait.rs

20 lines
209 B
Rust
Raw Normal View History

2012-08-07 15:01:15 -05:00
enum option_<T> {
none_,
some_(T),
}
impl<T> option_<T> {
fn foo() -> bool { true }
}
enum option__ {
none__,
some__(int)
}
impl option__ {
fn foo() -> bool { true }
}
fn main() {
}