-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE with manual implementation of Fn Trait #20225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Note that the definition and trait types are mismatched. This does compile: struct Test;
impl<T> Fn(T) for Test {
extern "rust-call" fn call(&self, _args: (T,)) {}
} |
Similar error message to #20186 |
Even more minified, with less backtrace: impl Fn(&()) for () { fn call(&self, _: (&(),)){} }
fn main() {} version:
and
|
Okay, mine seems to be a different problem... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Summary
The following piece of code produces an ICE.
Code
Compiler Output
Backtrace
The text was updated successfully, but these errors were encountered: