]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/issue-93486.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / typeck / issue-93486.stderr
1 error[E0070]: invalid left-hand side of assignment
2 --> $DIR/issue-93486.rs:3:36
3 |
4 LL | vec![].last_mut().unwrap() = 3_u8;
5 | -------------------------- ^
6 | |
7 | cannot assign to this expression
8 |
9 help: consider dereferencing here to assign to the mutably borrowed value
10 |
11 LL | *vec![].last_mut().unwrap() = 3_u8;
12 | +
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0070`.