Nightly Type Alias Compiler panic unexpected definition: TraitAlias
#57023
Labels
A-trait-system
Area: Trait system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
The compiler panics when using generics in trait aliases. I tried to reduce the code as much as I could while preserving the error so I apologize if it does not make any sense. Basically I had created a couple of different libraries that depended on each other.
The first library created a multi parameter generic type alias
The second library used that alias to define a slightly less generic trait alias
The third used the second to create a trait with all concrete types
I attempted to collapse some of the code to use less generics and crates, so it probably won't make sense why you'd write code like this, but it should show the error regardless.
I tried this code:
https://github.com/jgrowl/rust_nightly_790f4c566_2018-12-19_trait_alias_bug
I expected to not get a compiler panic
Meta
Backtrace:
The text was updated successfully, but these errors were encountered: