ICE: broken MIR
with nested opaque types.
#70971
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
F-impl_trait_in_bindings
`#![feature(impl_trait_in_bindings)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
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.
The following code produces an internal compiler error:
(playground)
I tried various other types, bounds and concrete types, all resulting in the same ICE:
(playground)
(playground)
However, when using an anonymous binding (
_
) the code always compiles:The text was updated successfully, but these errors were encountered: