]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/borrowck-let-suggestion-suffixes.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / span / borrowck-let-suggestion-suffixes.rs
index 70e136e7e61ad50a51833f3a9ecc4cc53a2516b7..6240f103c99b062a9b60bce70c161ef94efe65a8 100644 (file)
@@ -22,7 +22,7 @@ fn f() {
     //~| NOTE temporary value is freed at the end of this statement
     //~| HELP consider using a `let` binding to create a longer lived value
 
-    { //~ HELP consider using a `let` binding to create a longer lived value
+    {
 
         let mut v4 = Vec::new(); // (sub) statement 0
 
@@ -30,6 +30,7 @@ fn f() {
         //~^ ERROR temporary value dropped while borrowed
         //~| NOTE creates a temporary which is freed while still in use
         //~| NOTE temporary value is freed at the end of this statement
+        //~| NOTE consider using a `let` binding to create a longer lived value
         v4.use_ref();
         //~^ NOTE borrow later used here
     }                       // (statement 7)