f78776e9d8
(Also "interface" -> "trait" in error messages.)
14 lines
205 B
Rust
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() {
|
|
}
|