2021-09-18 15:00:36 -05:00
|
|
|
error: `No` held across a suspend point, but should not be
|
2021-10-25 19:01:24 -05:00
|
|
|
--> $DIR/dedup.rs:16:13
|
2021-09-18 15:00:36 -05:00
|
|
|
|
|
2021-10-25 19:01:24 -05:00
|
|
|
LL | wheeee(&No {}).await;
|
2021-12-15 14:35:34 -06:00
|
|
|
| ^^^^^ ------ the value is held across this suspend point
|
2021-09-18 15:00:36 -05:00
|
|
|
|
|
|
|
|
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
2021-10-25 19:01:24 -05:00
|
|
|
--> $DIR/dedup.rs:16:13
|
2021-09-18 15:00:36 -05:00
|
|
|
|
|
2021-10-25 19:01:24 -05:00
|
|
|
LL | wheeee(&No {}).await;
|
|
|
|
| ^^^^^
|
2022-09-18 10:55:36 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/dedup.rs:3:9
|
|
|
|
|
|
|
|
|
LL | #![deny(must_not_suspend)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-09-18 15:00:36 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|