rust/src/test/ui/lint/must_not_suspend/unit.stderr

27 lines
684 B
Plaintext
Raw Normal View History

2021-09-04 21:36:51 -05:00
error: `Umm` held across a yield point, but should not be
--> $DIR/unit.rs:20:9
|
LL | let _guard = bar();
| ^^^^^^
LL | other().await;
2021-09-13 10:19:40 -05:00
| ------------- the value is held across this yield point
2021-09-04 21:36:51 -05:00
|
note: the lint level is defined here
--> $DIR/unit.rs:3:9
|
LL | #![deny(must_not_suspend)]
| ^^^^^^^^^^^^^^^^
2021-09-13 10:19:40 -05:00
note: You gotta use Umm's, ya know?
--> $DIR/unit.rs:20:9
|
LL | let _guard = bar();
| ^^^^^^
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
2021-09-04 21:36:51 -05:00
--> $DIR/unit.rs:20:9
|
LL | let _guard = bar();
| ^^^^^^
error: aborting due to previous error