Skip to content

Commit 48bef89

Browse files
committed
Explicitly note any cast not defined in the documentation is illegal.
1 parent e32a2f9 commit 48bef89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/expressions/operator-expr.md

+2
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ Here `*T` means either `*const T` or `*mut T`.
329329

330330
\*\* only for closures that do not capture (close over) any local variables
331331

332+
Any cast that does not fit either a coercion rule or an entry in the above table is a compiler error.
333+
332334
### Semantics
333335

334336
* Numeric cast

0 commit comments

Comments
 (0)