This error is triggered by providing type parameters to a generic type in a match pattern.
e.g.
#![crate_type = "staticlib"]
pub struct Foo<T>(T, T);
impl<T> Foo<T> {
fn foo(&self) {
match *self {
Foo<T>(x, y) => println!("Goodbye, World!")
}
}
}
Playpen here.