]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-40510-3.nll.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-40510-3.nll.stderr
index 1297e1418981f3431a5ccd09953267c2d45c26c9..a49475a8570a1edde617e98d5304ce50144eefc3 100644 (file)
@@ -1,5 +1,5 @@
-warning: captured variable cannot escape `FnMut` closure body
-  --> $DIR/issue-40510-3.rs:8:9
+error: captured variable cannot escape `FnMut` closure body
+  --> $DIR/issue-40510-3.rs:11:9
    |
 LL |       || {
    |        - inferred to be a `FnMut` closure
@@ -10,6 +10,6 @@ LL | |         }
    |
    = note: `FnMut` closures only have access to their captured variables while they are executing...
    = note: ...therefore, they cannot allow references to captured variables to escape
-   = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
-   = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
+
+error: aborting due to previous error