]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr
Give an error number for "borrowed data escapes outside of closure"
[rust.git] / src / test / ui / nll / closure-requirements / propagate-approximated-shorter-to-static-wrong-bound.stderr
index d62910576b0c3a886dfc47df5afd83aaf810a113..35692414081ac1b545caa5cb48b20c8e2d3133d5 100644 (file)
@@ -33,7 +33,7 @@ LL | | }
    |
    = note: defining type: DefId(0/0:6 ~ propagate_approximated_shorter_to_static_wrong_bound[317d]::supply[0]) with substs []
 
-error: borrowed data escapes outside of function
+error[E0521]: borrowed data escapes outside of function
   --> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:5
    |
 LL |   fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
@@ -59,3 +59,4 @@ LL |         demand_y(x, y, x.get())
 
 error: aborting due to 2 previous errors
 
+For more information about this error, try `rustc --explain E0521`.