ICE: Got a scalar pair where a scalar was expected
when using the Self
on fn
, a wrong place.
#140365
Labels
-Zvalidate-mir
Unstable option: MIR validation
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A really similar case I found is: #135128
But I think they are different, as when trying the code in that issue, it didn't panic in the latest rustc: 1.88.0-nightly, but mine does.
Code
Command:
rustc -C opt-level=1 -Zvalidate-mir
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: