-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
The following test will ICE:
#![feature(unboxed_closures)]
struct Foo;
impl Fn(&int) for Foo { }
The workaround for now is to write:
impl<'a> Fn(&'a int) for Foo { }
It would be better if this were implicit. This seems related to lifetime elision, which also is supposed to permit elided parameters in impls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️