X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fasync-await%2Fissues%2Fissue-62097.nll.stderr;h=1139175f8a07a87f0c74be1e419480f1f0f82c60;hb=0b8f192cfee2f107867e7b9a0b0f781a5cb48787;hp=ab10e5f1810bdb63fba5094931b31e7d617c569f;hpb=a28f2afbeb341a5d59730091af4d59e953f9e767;p=rust.git diff --git a/src/test/ui/async-await/issues/issue-62097.nll.stderr b/src/test/ui/async-await/issues/issue-62097.nll.stderr index ab10e5f1810..1139175f8a0 100644 --- a/src/test/ui/async-await/issues/issue-62097.nll.stderr +++ b/src/test/ui/async-await/issues/issue-62097.nll.stderr @@ -14,7 +14,7 @@ LL | foo(|| self.bar()).await; help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword | LL | foo(move || self.bar()).await; - | ^^^^^^^ + | ^^^^ error[E0521]: borrowed data escapes outside of associated function --> $DIR/issue-62097.rs:13:9