]>
Commit | Line | Data |
---|---|---|
c295e0f8 | 1 | error: `Umm` held across a suspend point, but should not be |
f2b60f7d | 2 | --> $DIR/ref.rs:21: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 XL |
9 | | |
10 | note: the lint level is defined here | |
f2b60f7d | 11 | --> $DIR/ref.rs:6:9 |
c295e0f8 XL |
12 | | |
13 | LL | #![deny(must_not_suspend)] | |
14 | | ^^^^^^^^^^^^^^^^ | |
15 | note: You gotta use Umm's, ya know? | |
f2b60f7d | 16 | --> $DIR/ref.rs:21:26 |
c295e0f8 XL |
17 | | |
18 | LL | let guard = &mut self.u; | |
19 | | ^^^^^^ | |
20 | help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point | |
f2b60f7d | 21 | --> $DIR/ref.rs:21:26 |
c295e0f8 XL |
22 | | |
23 | LL | let guard = &mut self.u; | |
24 | | ^^^^^^ | |
25 | ||
26 | error: aborting due to previous error | |
27 |