Closed carl-eastlund closed 11 years ago
Slightly smaller version with the same error:
enum Type<T> { Constant }
trait Trait<K,V> {
fn method(&self,Type<(K,V)>);
}
impl<V:Clone+'static> Trait<u8,V> for () {
fn method(&self, _: Type<(u8,V)>) {}
}
fn main () {
let a = @() as @Trait<u8, u8>;
a.method(Constant);
}
cc @msullivan
From this program:
...I get this error: