-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Internal compiler error caused by generics and closure to fn pointer coercion #42718
Comments
Also occurs on beta. |
The regression here is only that this doesn't ICE on stable, presumably because the relevant code isn't reached. Still a regression once it goes through the trains, though. |
@Mark-Simulacrum yeah its an ICE related to the freshly stabilized closure to fn coercion feature. |
Smaller reproducing example: fn foo<T>(_: T) {
let _: fn() = || {};
}
fn main() {
foo(0i8);
} |
Hmm apparently the |
@est31 Well that's a consequence of there being type parameters. And it's in the ICE message. Specifically, this operation is missing for |
Following code causes internal compiler error on nighly:
Error:
The text was updated successfully, but these errors were encountered: