reference icon indicating copy to clipboard operation
reference copied to clipboard

Type coercion from function item types to function pointers

Open mattheww opened this issue 1 year ago • 5 comments

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

mattheww avatar Jul 12 '24 18:07 mattheww