1 error[E0368]: binary assignment operation `+=` cannot be applied to type `std::collections::LinkedList<_>`
4 LL | LinkedList::new() += 1; //~ ERROR E0368
5 | -----------------^^^^^
7 | cannot use `+=` on type `std::collections::LinkedList<_>`
9 = note: an implementation of `std::ops::AddAssign` might be missing for `std::collections::LinkedList<_>`
11 error[E0067]: invalid left-hand side expression
14 LL | LinkedList::new() += 1; //~ ERROR E0368
15 | ^^^^^^^^^^^^^^^^^ invalid expression for left-hand side
17 error: aborting due to 2 previous errors
19 Some errors occurred: E0067, E0368.
20 For more information about an error, try `rustc --explain E0067`.