No associated item found when the associated item was used as const generic parameter in return type #99705
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I tried this code:
This code should compile normally.
Instead, this happened:
In the
test
function, T was already bounded by theFoo
trait which does have an associated item namedABC
. However, Rust complains that no associated item namedABC
was found forT
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: