poor diagnostics when type-alias-impl-trait appears in impl #96569
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
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=nightly&mode=debug&edition=2021&gist=38b4af731292bf171e1011d9e54abd70
A type alias with at least one lifetime or type parameter:
The current output is:
Ideally the output should look like when the type alias has no lifetime of type paramters:
These diagnostics where introduced in #95973. cc @oli-obk.
@rustbot label T-compiler F-type_alias_impl_trait
The text was updated successfully, but these errors were encountered: