File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 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
4040arms.
4141"## ,
4242
43- /*E0002: r##"
43+ E0002 : r##"
44+ ## Note: this error code is no longer emitted by the compiler.
45+
4446This error indicates that an empty match expression is invalid because the type
4547it is matching on is non-empty (there exist values of this type). In safe code
4648it is impossible to create an instance of an empty type, so empty match
@@ -68,10 +70,11 @@ fn foo(x: Option<String>) {
6870 }
6971}
7072```
71- "##,*/
73+ "## ,
7274
75+ E0003 : r##"
76+ ## Note: this error code is no longer emitted by the compiler.
7377
74- /*E0003: r##"
7578Not-a-Number (NaN) values cannot be compared for equality and hence can never
7679match the input to a match expression. So, the following will not compile:
7780
@@ -98,7 +101,6 @@ match number {
98101}
99102```
100103"## ,
101- */
102104
103105E0004 : r##"
104106This error indicates that the compiler cannot guarantee a matching pattern for
You can’t perform that action at this time.
0 commit comments