Misleading error on tuple struct field with docstring #122463
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
I tried this code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=48a7a316c9d4825be960974fd87a8d8d
I expected to see this happen: Add docstring to field in tuple struct
Instead, this happened: Misleading second error "constant provided when a type was expected".
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: