]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/diagnostics.rs
Give an error number for "borrowed data escapes outside of closure"
[rust.git] / src / librustc_mir / diagnostics.rs
index 56031054b918387e762f3a2ec3b83534ce110537..773064f15dcf0698a7b02aa0a6b5472bea7e72b6 100644 (file)
@@ -2339,6 +2339,7 @@ fn foo() -> i32 { 22 }
 //  E0471, // constant evaluation error (in pattern)
 //    E0385, // {} in an aliasable location
     E0493, // destructors cannot be evaluated at compile-time
+    E0521,  // borrowed data escapes outside of closure
     E0524, // two closures require unique access to `..` at the same time
     E0526, // shuffle indices are not constant
     E0594, // cannot assign to {}