Skip to content

Commit 4c475e0

Browse files
committed
Document it also in type-coercions.md
1 parent 1f67a1c commit 4c475e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/type-coercions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Type coercions
22

3-
Coercions are defined in [RFC 401]. A coercion is implicit and has no syntax.
3+
Coercions are defined in [RFC 401]. [RFC 1558] then expanded on that.
4+
A coercion is implicit and has no syntax.
45

56
[RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7+
[RFC 1558]: https://github.com/rust-lang/rfcs/blob/master/text/1558-closure-to-fn-coercion.md
68

79
## Coercion sites
810

@@ -143,3 +145,5 @@ Coercion is allowed between the following types:
143145
In the future, coerce_inner will be recursively extended to tuples and
144146
structs. In addition, coercions from sub-traits to super-traits will be
145147
added. See [RFC 401] for more details.
148+
149+
* Non capturing closures to `fn` pointers

0 commit comments

Comments
 (0)