fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
754 B22 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   |
9   = note: an implementation of `std::ops::AddAssign` might be missing for `std::collections::LinkedList<_>`
10
11error[E0067]: invalid left-hand side of assignment
12  --> $DIR/E0067.rs:4:23
13   |
14LL |     LinkedList::new() += 1;
15   |     ----------------- ^^
16   |     |
17   |     cannot assign to this expression
18
19error: aborting due to 2 previous errors
20
21Some errors have detailed explanations: E0067, E0368.
22For more information about an error, try `rustc --explain E0067`.