]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/assignment-operator-unimplemented.rs
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / mismatched_types / 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 }