Skip to content

Type coercion from function item types to function pointers #1525

Open
@mattheww

Description

@mattheww

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 rust-lang/fls#460 and rust-lang/fls#472

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions