]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/borrowck/borrowck-let-suggestion.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / borrowck / borrowck-let-suggestion.rs
index d760f3db0c2cc9b85370bc03f11365d3d78c778b..7e9d448275dc7697d792abce8cba920220676ce8 100644 (file)
@@ -12,6 +12,7 @@ fn f() {
     let x = [1].iter(); //~ ERROR borrowed value does not live long enough
                          //~^ NOTE reference must be valid for the block suffix following statement
                          //~^^ HELP consider using a `let` binding to increase its lifetime
+                         //~^^^ NOTE ...but borrowed value is only valid for the statement at 12:4
 }
 
 fn main() {