2021-09-15 11:48:34 -07:00
|
|
|
error: `Umm` held across a suspend point, but should not be
|
2022-10-01 12:19:31 +02:00
|
|
|
--> $DIR/ref.rs:22:26
|
2021-09-11 12:24:40 -07:00
|
|
|
|
|
|
|
|
LL | let guard = &mut self.u;
|
|
|
|
| ^^^^^^
|
2022-06-08 21:07:59 +03:00
|
|
|
LL |
|
2021-09-11 12:24:40 -07:00
|
|
|
LL | other().await;
|
2023-04-25 18:59:16 +00:00
|
|
|
| ----- the value is held across this suspend point
|
2021-09-11 12:24:40 -07:00
|
|
|
|
|
2021-09-13 08:19:40 -07:00
|
|
|
note: You gotta use Umm's, ya know?
|
2022-10-01 12:19:31 +02:00
|
|
|
--> $DIR/ref.rs:22:26
|
2021-09-13 08:19:40 -07:00
|
|
|
|
|
|
|
|
LL | let guard = &mut self.u;
|
|
|
|
| ^^^^^^
|
2021-09-15 11:48:34 -07:00
|
|
|
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
2022-10-01 12:19:31 +02:00
|
|
|
--> $DIR/ref.rs:22:26
|
2021-09-11 12:24:40 -07:00
|
|
|
|
|
|
|
|
LL | let guard = &mut self.u;
|
|
|
|
| ^^^^^^
|
2022-09-18 19:55:36 +04:00
|
|
|
note: the lint level is defined here
|
2022-10-01 12:19:31 +02:00
|
|
|
--> $DIR/ref.rs:7:9
|
2022-09-18 19:55:36 +04:00
|
|
|
|
|
|
|
|
LL | #![deny(must_not_suspend)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-09-11 12:24:40 -07:00
|
|
|
|
2021-09-18 13:00:36 -07:00
|
|
|
error: aborting due to previous error
|
2021-09-11 12:24:40 -07:00
|
|
|
|