File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ Ensure the ordering of the match arm is correct and remove any superfluous
40
40
arms.
41
41
"## ,
42
42
43
- /*E0002: r##"
43
+ E0002 : r##"
44
+ ## Note: this error code is no longer emitted by the compiler.
45
+
44
46
This error indicates that an empty match expression is invalid because the type
45
47
it is matching on is non-empty (there exist values of this type). In safe code
46
48
it is impossible to create an instance of an empty type, so empty match
@@ -68,10 +70,11 @@ fn foo(x: Option<String>) {
68
70
}
69
71
}
70
72
```
71
- "##,*/
73
+ "## ,
72
74
75
+ E0003 : r##"
76
+ ## Note: this error code is no longer emitted by the compiler.
73
77
74
- /*E0003: r##"
75
78
Not-a-Number (NaN) values cannot be compared for equality and hence can never
76
79
match the input to a match expression. So, the following will not compile:
77
80
@@ -98,7 +101,6 @@ match number {
98
101
}
99
102
```
100
103
"## ,
101
- */
102
104
103
105
E0004 : r##"
104
106
This error indicates that the compiler cannot guarantee a matching pattern for
You can’t perform that action at this time.
0 commit comments