New #[must_use]
behaviour for async methods does not apply to Pin<Box<dyn Future<Output = ()>>>
#111458
Labels
A-async-await
Area: Async & Await
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
AsyncAwait-Polish
Async-await issues that are part of the "polish" area
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Defining traits that contain methods that return such a type:
The compiler should probably have warned me about not using the
Output
of theFuture
, consistent with the behaviour of async functions in Rust 1.67.0. This will also work without the need for traits but async traits is one of the most common use cases for such a type.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: