Attempting to store function callback of a particular incorrect type produces ICE #140823
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
S-has-bisection
Status: a bisection has been found for this issue
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Notes:
&Container<...>
vsContainer<....>
)Container
needs to take a generic argument to repro, and the argument value needs to be a reference. UsingContainer<u8>
orContainer<Vec<u8>>
does not repro.fails
andcallback
not repro.Container
with real containers likeVec
orVecDeque
Meta
rustc --version --verbose
:Confirmed bug reproduces on nightly. Traces are from stable.
Error output
Backtrace
Without RUST_BACKTRACE=1
Including since there's a stacktrace here that doesn't appear otherwise
With RUST_BACKTRACE=1
The text was updated successfully, but these errors were encountered: