2012-05-03 12:10:12 -05:00
|
|
|
enum chan { }
|
|
|
|
|
|
|
|
iface channel<T> {
|
|
|
|
fn send(v: T);
|
|
|
|
}
|
|
|
|
|
|
|
|
// `chan` is not an iface, it's an enum
|
2012-06-30 06:23:59 -05:00
|
|
|
impl of chan for int { //~ ERROR can only implement interface types
|
2012-05-03 12:10:12 -05:00
|
|
|
fn send(v: int) { fail }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|