]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assignment-operator-unimplemented.rs
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
[rust.git] / src / test / ui / assignment-operator-unimplemented.rs
1 struct Foo;
2
3 fn main() {
4   let mut a = Foo;
5   let ref b = Foo;
6   a += *b; //~ Error: binary assignment operation `+=` cannot be applied to type `Foo`
7 }