rust/src/test/compile-fail/issue-2330.rs
Lindsey Kuper f78776e9d8 rustc: "iface" -> "trait" in comments, error messages, and identifiers.
(Also "interface" -> "trait" in error messages.)
2012-07-30 17:26:14 -07:00

14 lines
205 B
Rust

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