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