We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151c8a6 commit 1ad3e9dCopy full SHA for 1ad3e9d
text/0000-or-patterns.md
@@ -579,6 +579,11 @@ The particular design of such an error message is left open to implementations.
579
+ the type of any two bindings with the same name in `p` and `q` do not unify
580
with respect to types or binding modes.
581
582
+ [type coercions]: https://doc.rust-lang.org/reference/type-coercions.html
583
+
584
+ Unification of types is in all instances aforementioned exact and
585
+ implicit [type coercions] do not apply.
586
587
2. When type checking an expression `match e_s { a_1 => e_1, ... a_n => e_n }`,
588
for each match arm `a_i` which contains a pattern of form `p_i | q_i`,
589
the pattern `p_i | q_i` is considered ill formed if,
0 commit comments