]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assignment-operator-unimplemented.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[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 }