]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assignment-operator-unimplemented.rs
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' 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 }