]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/typeck/issue-93486.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / typeck / issue-93486.stderr
index 70b5b63f1cba7ccb7034b6ecf3e1068e5ada37ad..167edc8942aec47d11cc2c26860ec9ca269de9d1 100644 (file)
@@ -5,6 +5,11 @@ LL |         vec![].last_mut().unwrap() = 3_u8;
    |         -------------------------- ^
    |         |
    |         cannot assign to this expression
+   |
+help: consider dereferencing here to assign to the mutably borrowed value
+   |
+LL |         *vec![].last_mut().unwrap() = 3_u8;
+   |         +
 
 error: aborting due to previous error