]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0368]: binary assignment operation `+=` cannot be applied to type `LinkedList<_>` |
0731742a | 2 | --> $DIR/E0067.rs:4:5 |
2c00a5a8 | 3 | | |
532ac7d7 | 4 | LL | LinkedList::new() += 1; |
2c00a5a8 XL |
5 | | -----------------^^^^^ |
6 | | | | |
1b1a35ee | 7 | | cannot use `+=` on type `LinkedList<_>` |
2c00a5a8 | 8 | |
dfeec247 XL |
9 | error[E0067]: invalid left-hand side of assignment |
10 | --> $DIR/E0067.rs:4:23 | |
2c00a5a8 | 11 | | |
532ac7d7 | 12 | LL | LinkedList::new() += 1; |
dfeec247 XL |
13 | | ----------------- ^^ |
14 | | | | |
15 | | cannot assign to this expression | |
2c00a5a8 XL |
16 | |
17 | error: aborting due to 2 previous errors | |
18 | ||
48663c56 | 19 | Some errors have detailed explanations: E0067, E0368. |
0531ce1d | 20 | For more information about an error, try `rustc --explain E0067`. |