Skip to content
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

Type coercion from function item types to function pointers #1525

Open
mattheww opened this issue Jul 12, 2024 · 0 comments
Open

Type coercion from function item types to function pointers #1525

mattheww opened this issue Jul 12, 2024 · 0 comments

Comments

@mattheww
Copy link
Contributor

The "Type coercions" section says coercion is allowed from:

  • Function item types to fn pointers
  • Non capturing closures to fn pointers

This ought to describe the compatibility requirements, including:

  • the signatures must be compatible (which needs defining)
  • the ABI must be the same
  • the safety must be the same

See ferrocene/specification#460 and ferrocene/specification#472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant