False-positive unused variable warning in the presence of unimplemented!()
#88317
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: Playground
The current output warns about an unused parameter:
However, the
view
parameter is used in the match block, even though it'll never be executed as things stand. If I comment out theunimplemented!()
, the warning goes away.The text was updated successfully, but these errors were encountered: