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