fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
640 B20 linesraw
1error[E0368]: binary assignment operation `+=` cannot be applied to type `std::collections::LinkedList<_>`
2  --> $DIR/E0067.rs:4:5
3   |
4LL |     LinkedList::new() += 1;
5   |     -----------------^^^^^
6   |     |
7   |     cannot use `+=` on type `std::collections::LinkedList<_>`
8
9error[E0067]: invalid left-hand side of assignment
10  --> $DIR/E0067.rs:4:23
11   |
12LL |     LinkedList::new() += 1;
13   |     ----------------- ^^
14   |     |
15   |     cannot assign to this expression
16
17error: aborting due to 2 previous errors
18
19Some errors have detailed explanations: E0067, E0368.
20For more information about an error, try `rustc --explain E0067`.