Incorrect suggestion when type annotation on turbofished enum is needed #100137
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
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=release&edition=2021&gist=b9b341939839ec733bf081c5ddf86e5b
The current output is:
But applying this causes an error, saying that
C
doesn't allow type arguments.This happens on nightly and beta, but not on stable. I'm assuming the "consider specifying the generic arguments" was added recently.
I don't think we need the help here, because the generic arguments are already specified.
@rustbot label +D-invalid-suggestion
The text was updated successfully, but these errors were encountered: