Functions returning BoxFuture
have no warning when the future is unused
#96618
Labels
C-bug
Category: This is a bug.
I tried this code:
I expected to see this happen:
Normally, the
unused_must_use
lint would warn regarding the unused future. In this case there's no warning (perhaps because the original function has no warning, but since there's a blanket warning forasync
functions I'd expect one here).Instead, this happened:
No warning was emitted
Meta
rustc --version --verbose
:See playground here
The text was updated successfully, but these errors were encountered: