]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assignment-operator-unimplemented.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[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 }