constant as trait param results in incorrect dead code warning #70225
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
playground
I expected to see this happen: no
dead_code
warning is emitted.Instead, this happened:
The text was updated successfully, but these errors were encountered: