Skip to content

Commit

Permalink
Merge #472
Browse files Browse the repository at this point in the history
472: Specify signature compatability requirement for fn ptr coercion r=pietroalbini a=Veykril

Fixes #460

Co-authored-by: Lukas Wirth <[email protected]>
  • Loading branch information
bors-ferrocene[bot] and Veykril authored Nov 16, 2023
2 parents 46c0959 + fab81d7 commit a445f25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types-and-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1977,12 +1977,12 @@ occur when:
using :t:`unsized coercion`.

* :dp:`fls_ulcdetwp6x96`
The source :t:`type` is a :t:`function item type` and the target :t:`type` is
a :t:`function pointer type`.
The source :t:`type` is a :t:`function item type`, the target :t:`type` is
a :t:`function pointer type` and the source's :t:`function signature` is a :t:`subtype` of the target's :t:`function signature`.

* :dp:`fls_2uv1r0gni1fk`
The source :t:`type` is a non-capturing :t:`closure type` and the target
:t:`type` is a :t:`function pointer type`.
The source :t:`type` is a non-capturing :t:`closure type`, the target
:t:`type` is a :t:`function pointer type` and the source's :t:`function signature` is a :t:`subtype` of the target's :t:`function signature`.

* :dp:`fls_sf0c3fbx8z57`
The source :t:`type` is the :t:`never type` and the target :t:`type` is any
Expand Down

0 comments on commit a445f25

Please sign in to comment.