blob: a2f8dfe9c493cf4fe5b88715faf8391ad9c22c06 [file] [log] [blame]
struct Foo<T> {
x: T,
}
impl<T> Foo<T> {
fn add(&mut self, v: Foo<T>){
self.x += v.x;
//~^ ERROR: binary assignment operation `+=` cannot be applied
}
}
fn main() {}