We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757bd23 commit 3ee3071Copy full SHA for 3ee3071
src/test/ui/async-await/issues/issue-78938-async-block.stderr
@@ -8,7 +8,7 @@ LL | | game_loop(Arc::clone(&room_ref))
8
LL | | });
9
| |_____^ may outlive borrowed value `room_ref`
10
|
11
- = 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
12
= help: see https://rust-lang.github.io/async-book/03_async_await/01_chapter.html#awaiting-on-a-multithreaded-executor for more information
13
help: to force the async block to take ownership of `room_ref` (and any other referenced variables), use the `move` keyword
14
0 commit comments