rustc ICEs, "expected a Fn(u64)
closure, found F
"
#125099
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I am not sure whether it is related toAsyncAssociated-types usage in that contextMy own experiments shown that by removingFuture
usage it's possible to get rid ofICE
, however, that's not necessarily identifies the problemIt is related to diagnostic as shown by @lqd - #125099 (comment)
Also code was a lot shortened - #125099 (comment)
Original code is still available at playground for history
Future
s usage eliminates ICE: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=81a36dbd18a3e21095514160b783ae95Code
https://play.rust-lang.org/?version=beta&mode=debug&edition=2021&gist=062bfd1c3c14b4af559fa82963211f22
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: