-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
I just tried this (last time was 2015-01-08) on playpen:
trait Trait {
type AssocType: Trait;
}
fn main() {}
which apparently makes rustc
do an infinite recursion (or something) ending in a stack overflow:
thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
playpen: application terminated with error code 132
If I remove the : Trait
in the line for the associated type, it works again.
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️