Closed
Description
I'm getting
error: internal compiler error: librustc/infer/error_reporting/mod.rs:184: ReEmpty
thread 'main' panicked at 'Box', librustc_errors/lib.rs:554:9
when trying to compile
#![feature(generators, generator_trait)]
use std::ops::Generator;
fn example() -> impl Generator {
|| { yield &1 }
}
on rustc 1.29.0-nightly (e5f6498 2018-07-10) - Playground demo.
This seems to happen when I yield
a reference type and don't specify the exact type in impl Generator<Yield=&Whatever>
.
Metadata
Metadata
Assignees
Labels
Area: CoroutinesArea: Messages for errors, warnings, and lintsArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Category: This is a bug.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.`#![feature(coroutines)]`Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.