]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must_not_suspend/boxed.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / lint / must_not_suspend / boxed.stderr
1 error: boxed `Umm` held across a suspend point, but should not be
2   --> $DIR/boxed.rs:20:9
3    |
4 LL |     let _guard = bar();
5    |         ^^^^^^
6 LL |     other().await;
7    |            ------ the value is held across this suspend point
8    |
9 note: You gotta use Umm's, ya know?
10   --> $DIR/boxed.rs:20:9
11    |
12 LL |     let _guard = bar();
13    |         ^^^^^^
14 help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
15   --> $DIR/boxed.rs:20:9
16    |
17 LL |     let _guard = bar();
18    |         ^^^^^^
19 note: the lint level is defined here
20   --> $DIR/boxed.rs:3:9
21    |
22 LL | #![deny(must_not_suspend)]
23    |         ^^^^^^^^^^^^^^^^
24
25 error: aborting due to previous error
26