]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0368]: binary assignment operation `+=` cannot be applied to type `&isize` |
0731742a | 2 | --> $DIR/issue-5239-1.rs:4:30 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | let x = |ref x: isize| { x += 1; }; |
ff7c6d11 XL |
5 | | -^^^^^ |
6 | | | | |
7 | | cannot use `+=` on type `&isize` | |
8 | ||
4b012472 | 9 | error: aborting due to 1 previous error |
ff7c6d11 | 10 | |
0531ce1d | 11 | For more information about this error, try `rustc --explain E0368`. |