ICE: never type as default associated type #51506
Labels
A-specialization
Area: Trait impl specialization
A-trait-system
Area: Trait system
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.
F-never_type
`#![feature(never_type)]`
F-specialization
`#![feature(specialization)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
This code generates an ICE
with this message.
Replacing
1.f()
byX.f()
makes the code to compile and run fine, which is strange because ! does not implementsIterator
.By removing the specialization the compiler refuses to compile the code with the error:
The text was updated successfully, but these errors were encountered: