Skip to content

Commit

Permalink
Update src/test/ui/async-await/issues/issue-78938-async-block.stderr
Browse files Browse the repository at this point in the history
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
  • Loading branch information
sledgehammervampire and estebank committed Jan 12, 2021
1 parent 757bd23 commit 3ee3071
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -8,7 +8,7 @@ LL | | game_loop(Arc::clone(&room_ref))
LL | | });
| |_____^ may outlive borrowed value `room_ref`
|
= note: async blocks are not executed immediately and either must take a reference or ownership of outside variables they use
= note: async blocks are not executed immediately and must either take a reference or ownership of outside variables they use
= help: see https://rust-lang.github.io/async-book/03_async_await/01_chapter.html#awaiting-on-a-multithreaded-executor for more information
help: to force the async block to take ownership of `room_ref` (and any other referenced variables), use the `move` keyword
|
Expand Down

0 comments on commit 3ee3071

Please sign in to comment.