diff options
Diffstat (limited to 'Notes/Quirks.md')
-rw-r--r-- | Notes/Quirks.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Notes/Quirks.md b/Notes/Quirks.md index 2b0705a9..d3b7839d 100644 --- a/Notes/Quirks.md +++ b/Notes/Quirks.md @@ -52,5 +52,9 @@ The "base" value of a struct literal isn't always moved Binops are coercion points ========================== +- This only really shows up with some edge cases where the RHS is inferred +Casts can act as coercions +========================== +- E.g. `None as Option<Span>` is perfectly valid, and is the same as `None::<Span>` |