min_specialization
with default generic causes an ICE
#79224
Labels
A-specialization
Area: Trait impl specialization
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I wanted to change
Cow
to use the pattern in the code below (which changesCow
variance w.r.t to<B as ToOwned>::Owned
),but got an ICE. I managed to reduce it the code below.
Code
The same code with the current definition of
Cow
works (same asstd
):Meta
rustc --version --verbose
:Error output
Backtrace
log with RUSTC_LOG=rustc_trait_selection::traits::specialize
The text was updated successfully, but these errors were encountered: