Suggest removal of type ascription in stable #95014
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
F-type_ascription
`#![feature(type_ascription)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Given the following code:
The current output is:
It should (instead?/also?) suggest removing the type ascription, as it is more likely what the end user wanted. Particularly in stable compilers.
Taken from https://users.rust-lang.org/t/cannot-compile-my-code/72894
The text was updated successfully, but these errors were encountered: