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

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

20 lines
555 B
Plaintext
Raw Normal View History

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