Compiler error: returning impl Generator #46504
Labels
A-coroutines
Area: Coroutines
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Moin Leute,
I'm experimenting with the features: conservative_impl_trait, generators, generator trait. rustc got an internal error.
See the code. First I tried to do
Yield = T
. The compiler complained:expected &&T, found type parameter
. So I added &&. That produced the error below.I tried this code:
I expected to see this happen:
I don't really know what should have happened instead. I stopped experimenting.
Got this:
Meta
rustc --version --verbose
:Full Backtrace:
The text was updated successfully, but these errors were encountered: