exhustiveness checking in commented code suggests duplicating comments #101762
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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=stable&mode=debug&edition=2021&code=enum%20S%20%7B%0A%20%20%20%20O%2C%0A%20%20%20%20P%2C%0A%20%20%20%20Q%2C%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20match%20S%3A%3AO%20%7B%0A%20%20%20%20%20%20%20%20S%3A%3AO%20%3D%3E%20%7B%7D%0A%20%20%20%20%20%20%20%20%2F*%0A%20%20%20%20%20%20%20%20%20*%20stuff%2C%20stuff%2C%0A%20%20%20%20%20%20%20%20%20*%20siherfhhsf%0A%20%20%20%20%20%20%20%20%20*%20syrrehhgsdiiey%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20S%3A%3AP%20%3D%3E%20%7B%7D%0A%20%20%20%20%7D%0A%7D
The current output is:
Ideally the output should look like:
The text was updated successfully, but these errors were encountered: