]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0067.stderr
Rollup merge of #106940 - oli-obk:tait_error, r=compiler-errors
[rust.git] / tests / ui / error-codes / E0067.stderr
1 error[E0368]: binary assignment operation `+=` cannot be applied to type `LinkedList<_>`
2   --> $DIR/E0067.rs:4:5
3    |
4 LL |     LinkedList::new() += 1;
5    |     -----------------^^^^^
6    |     |
7    |     cannot use `+=` on type `LinkedList<_>`
8
9 error[E0067]: invalid left-hand side of assignment
10   --> $DIR/E0067.rs:4:23
11    |
12 LL |     LinkedList::new() += 1;
13    |     ----------------- ^^
14    |     |
15    |     cannot assign to this expression
16
17 error: aborting due to 2 previous errors
18
19 Some errors have detailed explanations: E0067, E0368.
20 For more information about an error, try `rustc --explain E0067`.