]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-45983.nll.stderr
Give an error number for "borrowed data escapes outside of closure"
[rust.git] / src / test / ui / borrowck / issue-45983.nll.stderr
index 18411b528a3e30d2455b51cbd20587f4ed5d75de..6588215c221fb9ec27d110e766c4181682814328 100644 (file)
@@ -1,4 +1,4 @@
-error: borrowed data escapes outside of closure
+error[E0521]: borrowed data escapes outside of closure
   --> $DIR/issue-45983.rs:36:18
    |
 LL |     let x = None;
@@ -18,4 +18,5 @@ LL |     give_any(|y| x = Some(y));
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0594`.
+Some errors occurred: E0521, E0594.
+For more information about an error, try `rustc --explain E0521`.