Skip to content

Commit 25d35f1

Browse files
author
Ulrik Sverdrup
committed
Mention the drawback/overlap with .. in patterns
1 parent ff6c314 commit 25d35f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

text/0000-rangefull-expression.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ slices don't need to use slicing syntax at all, so the change in verbosity from
4141

4242
# Drawbacks
4343

44-
Removing the slicing syntax `&foo[]` is a breaking change.
44+
* Removing the slicing syntax `&foo[]` is a breaking change.
45+
46+
* `..` already appears in patterns, as in this example:
47+
`if let Some(..) = foo { }`. This is not a conflict per se, but the
48+
same syntax element is used in two different ways in Rust.
4549

4650
# Alternatives
4751

0 commit comments

Comments
 (0)