Cycle detected when computing type, but only when function is const #112602
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I-cycle
Issue: A query cycle occurred while none was expected
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Which causes the following error:
However, what is peculiar is that if you remove the
const
keyword from themany
function, compilation succeeds, with absolutely no warnings or errors.Meta
rustc --version --verbose
:No backtrace is emitted when I use
RUST_BACKTRACE=1 cargo build
.The text was updated successfully, but these errors were encountered: