]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/must_not_suspend/warn.no_drop_tracking.stderr
Rollup merge of #107022 - scottmcm:ordering-option-eq, r=m-ou-se
[rust.git] / tests / ui / lint / must_not_suspend / warn.no_drop_tracking.stderr
1 warning: `Umm` held across a suspend point, but should not be
2   --> $DIR/warn.rs:24: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/warn.rs:24: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/warn.rs:24:9
16    |
17 LL |     let _guard = bar();
18    |         ^^^^^^
19 note: the lint level is defined here
20   --> $DIR/warn.rs:7:9
21    |
22 LL | #![warn(must_not_suspend)]
23    |         ^^^^^^^^^^^^^^^^
24
25 warning: 1 warning emitted
26