Panic when using Self: Send constraint in impl parameter #36638
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Panic when trying to enforce
Send
on a impl parameter of typeSelf
. Panics with meaningful error. Should perhaps just be a regular compiler error?I tried this code:
I expected to see this happen: meaningful error or it would work!
Instead, this happened: panic in rustc
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: