min_const_generics infers the wrong type depending on trait bounds in scope #104044
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code: play
I expected to see this happen: successfully compiles
Instead, this happened: compiler errors
If I uncomment the
+ UsizeBool<1>
bound, it would compile successfully.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: