rust/tests/ui/lint/must_not_suspend/ref.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
758 B
Plaintext
Raw Normal View History

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