Trait upcasting ICE with projection in (duplicate) supertrait bound #135463
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
A-trait-objects
Area: trait objects, vtable layout
C-bug
Category: This is a bug.
F-trait_upcasting
`#![feature(trait_upcasting)]`
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.
This code ICEs only in release mode:
(playground)
It doesn't ICE on debug builds. It also doesn't ICE, if
P
doesn't match the()
type, e.g. if the call is changed toupcast::<u8>…
.Tested on nightly, and also on #135318:
(As of this writing) this ICE is not fixed in #135318 either.
@rustbot label requires-nightly, T-compiler, I-ICE, F-trait_upcasting, A-trait-objects, A-coercions
The text was updated successfully, but these errors were encountered: