2021-09-04 21:36:51 -05:00
|
|
|
error: implementer of `Wow` held across a yield point, but should not be
|
|
|
|
--> $DIR/trait.rs:21:9
|
|
|
|
|
|
|
|
|
LL | let _guard1 = r#impl();
|
|
|
|
| ^^^^^^^
|
|
|
|
...
|
|
|
|
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/trait.rs:3:9
|
|
|
|
|
|
|
|
|
LL | #![deny(must_not_suspend)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-09-13 10:19:40 -05:00
|
|
|
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/trait.rs:21:9
|
|
|
|
|
|
|
|
|
LL | let _guard1 = r#impl();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: boxed `Wow` trait object held across a yield point, but should not be
|
|
|
|
--> $DIR/trait.rs:22:9
|
|
|
|
|
|
|
|
|
LL | let _guard2 = r#dyn();
|
|
|
|
| ^^^^^^^
|
|
|
|
LL |
|
|
|
|
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
|
|
|
|
|
2021-09-13 10:19:40 -05:00
|
|
|
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/trait.rs:22:9
|
|
|
|
|
|
|
|
|
LL | let _guard2 = r#dyn();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|