3 use std::ops::AddAssign;
6 impl AddAssign<()> for Foo {
7 fn add_assign(&mut self, _: ()) {}
10 impl AddAssign<()> for &mut Foo {
11 fn add_assign(&mut self, _: ()) {}
16 //~^ ERROR invalid left-hand side of assignment
17 //~| NOTE cannot assign to this expression
18 //~| HELP consider dereferencing the left-hand side of this operation