rust/src/test/compile-fail/issue-2330.rs
2012-08-08 18:19:24 -07:00

14 lines
199 B
Rust

enum chan { }
trait channel<T> {
fn send(v: T);
}
// `chan` is not a trait, it's an enum
impl int: chan { //~ ERROR can only implement trait types
fn send(v: int) { fail }
}
fn main() {
}