]>
Commit | Line | Data |
---|---|---|
c295e0f8 | 1 | error: `Umm` held across a suspend point, but should not be |
9ffffee4 | 2 | --> $DIR/ref.rs:22:26 |
c295e0f8 XL |
3 | | |
4 | LL | let guard = &mut self.u; | |
5 | | ^^^^^^ | |
923072b8 | 6 | LL | |
c295e0f8 | 7 | LL | other().await; |
a2a8927a | 8 | | ------ the value is held across this suspend point |
c295e0f8 | 9 | | |
c295e0f8 | 10 | note: You gotta use Umm's, ya know? |
9ffffee4 | 11 | --> $DIR/ref.rs:22:26 |
c295e0f8 XL |
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 | |
9ffffee4 | 16 | --> $DIR/ref.rs:22:26 |
c295e0f8 XL |
17 | | |
18 | LL | let guard = &mut self.u; | |
19 | | ^^^^^^ | |
2b03887a | 20 | note: the lint level is defined here |
9ffffee4 | 21 | --> $DIR/ref.rs:7:9 |
2b03887a FG |
22 | | |
23 | LL | #![deny(must_not_suspend)] | |
24 | | ^^^^^^^^^^^^^^^^ | |
c295e0f8 XL |
25 | |
26 | error: aborting due to previous error | |
27 |