Skip to content

Commit

Permalink
Merge pull request #1079 from JohnTitor/mention-one-more-coercion
Browse files Browse the repository at this point in the history
Mention "function item type to `fn pointer`" coercion
  • Loading branch information
ehuss authored Jul 29, 2021
2 parents 5b96df0 + ae773c1 commit 4884fe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Coercion is allowed between the following types:
structs. In addition, coercions from sub-traits to super-traits will be
added. See [RFC 401] for more details.-->

* Function item types to `fn` pointers

* Non capturing closures to `fn` pointers

* `!` to any `T`
Expand Down

0 comments on commit 4884fe4

Please sign in to comment.