Suggest that Pin<Box<dyn Unpin + Future>>
is redundant
#95089
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=232bc66719a632fbcb8f5d400a58f74e
The current output is:
Ideally the output should look like:
Pin<Box<T>>
is alwaysUnpin
and therefore there's no need to requireT: Unpin
.Also note the "[async output]" message in the first block; that looks like an outright bug.
The text was updated successfully, but these errors were encountered: