summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2330.rs
blob: b0b210517147b2f24fc058e9fe78e5896c0624f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enum chan { }

iface channel<T> {
    fn send(v: T);
}

// `chan` is not an iface, it's an enum
impl of chan for int { //~ ERROR can only implement interface types
    fn send(v: int) { fail }
}

fn main() {
}