nightly compiler panic with type-annotated array of impl Generator
#58504
Labels
-Zvalidate-mir
Unstable option: MIR validation
A-coroutines
Area: Coroutines
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-coroutines
`#![feature(coroutines)]`
F-impl_trait_in_bindings
`#![feature(impl_trait_in_bindings)]`
F-never_type
`#![feature(never_type)]`
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.
playground link:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c5cabc7e014cd71996c8bcb60acab446
Code:
Error:
Note that there is no compiler panic if the array is of size 1, or if the explicit type annotation on
gens
is omittedThe text was updated successfully, but these errors were encountered: