]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/augmented-assignments.rs
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / augmented-assignments.rs
index 82f5c49eeb7ae520d81ccd85cdce3e14e01794df..2857ff2554a0c1f4e0c29ae8d7f37075896300c7 100644 (file)
@@ -26,7 +26,8 @@ fn main() {
     x;  //~ value moved here
 
     let y = Int(2);
-    //~^ consider changing this to `mut y`
+    //~^ HELP make this binding mutable
+    //~| SUGGESTION mut y
     y   //~ error: cannot borrow immutable local variable `y` as mutable
         //~| cannot borrow
     +=