]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/capture-ref-in-struct.stderr
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / test / ui / nll / capture-ref-in-struct.stderr
index d05ec91be3026cc4fe515d364f5a505f4cd28e60..1c545906893a232c24436ae134940cc5806c7c71 100644 (file)
@@ -1,16 +1,15 @@
 error[E0597]: `y` does not live long enough
   --> $DIR/capture-ref-in-struct.rs:33:16
    |
-33 |             y: &y,
+LL |             y: &y,
    |                ^^ borrowed value does not live long enough
 ...
-38 |     }
+LL |     }
    |     - borrowed value only lives until here
-39 | 
-40 |     deref(p);
+LL | 
+LL |     deref(p);
    |           - borrow later used here
-   |
-   = note: borrowed value must be valid for lifetime '_#5r...
 
 error: aborting due to previous error
 
+If you want more information on this error, try using "rustc --explain E0597"