dead_code lint triggers even though function is used in const pattern #78171
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-patterns
Relating to patterns and pattern matching
C-bug
Category: This is a bug.
F-inline_const
Inline constants (aka: const blocks, const expressions, anonymous constants)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This should compile without warnings (playground):
Yet it warns:
The text was updated successfully, but these errors were encountered: