Type alias used in async fn return type is wrongly reported unused #59085
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
With
rustc 1.35.0-nightly (26b4cb484 2019-03-09)
The following code
produces the following warning
When
Bar
is clearly used here.This seem to only trigger if the alias is used in the return type position
The text was updated successfully, but these errors were encountered: