Existential types for traits without generic type parameters make rustc panic #59342
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
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.
I tried this code:
I expected to be able to compile this code and to use it like this:
Instead,
rustc
crashes (see backtrace in the end of the issue).However, the code compiles fine when I add generic type parameter to
Meow
trait definition:Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: