]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / lint / must_not_suspend / ref-drop-tracking.stderr
1 error: reference to `Umm` held across a suspend point, but should not be
2   --> $DIR/ref-drop-tracking.rs:19:13
3    |
4 LL |         let guard = &mut self.u;
5    |             ^^^^^
6 LL |
7 LL |         other().await;
8    |                ------ the value is held across this suspend point
9    |
10 note: You gotta use Umm's, ya know?
11   --> $DIR/ref-drop-tracking.rs:19:13
12    |
13 LL |         let guard = &mut self.u;
14    |             ^^^^^
15 help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
16   --> $DIR/ref-drop-tracking.rs:19:13
17    |
18 LL |         let guard = &mut self.u;
19    |             ^^^^^
20 note: the lint level is defined here
21   --> $DIR/ref-drop-tracking.rs:4:9
22    |
23 LL | #![deny(must_not_suspend)]
24    |         ^^^^^^^^^^^^^^^^
25
26 error: aborting due to previous error
27