28 lines
756 B
Plaintext
Raw Normal View History

2023-06-24 10:02:54 +00:00
error: reference to `Umm` held across a suspend point, but should not be
--> $DIR/ref.rs:18:13
2021-09-11 12:24:40 -07:00
|
LL | let guard = &mut self.u;
2023-06-24 10:02:54 +00:00
| ^^^^^
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?
2023-06-24 10:02:54 +00:00
--> $DIR/ref.rs:18:13
2021-09-13 08:19:40 -07:00
|
LL | let guard = &mut self.u;
2023-06-24 10:02:54 +00:00
| ^^^^^
2021-09-15 11:48:34 -07:00
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
2023-06-24 10:02:54 +00:00
--> $DIR/ref.rs:18:13
2021-09-11 12:24:40 -07:00
|
LL | let guard = &mut self.u;
2023-06-24 10:02:54 +00:00
| ^^^^^
2022-09-18 19:55:36 +04:00
note: the lint level is defined here
2023-05-07 18:38:52 +00:00
--> $DIR/ref.rs:3: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