]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr
use RegionNameHighlight for async fn and closure returns
[rust.git] / src / test / ui / borrowck / issue-53432-nested-closure-outlives-borrowed-value.stderr
index e8a026cfab92a79f4f1149c50dd6ea3f3df1acba..a7c3b9eec73c5624cb94f2c1718ae4e81299720a 100644 (file)
@@ -4,7 +4,7 @@ error: lifetime may not live long enough
 LL |     let _action = move || {
    |                   -------
    |                   |     |
-   |                   |     return type of closure is [closure@$DIR/issue-53432-nested-closure-outlives-borrowed-value.rs:4:9: 4:15]
+   |                   |     return type of closure `[closure@$DIR/issue-53432-nested-closure-outlives-borrowed-value.rs:4:9: 4:15]` contains a lifetime `'2`
    |                   lifetime `'1` represents this closure's body
 LL |         || f() // The `nested` closure
    |         ^^^^^^ returning this value requires that `'1` must outlive `'2`