You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0004]: non-exhaustive patterns: `(B, C)`, `D`, `E` and 1 more not covered
--> <anon>:7:5
|
7 | match (A, ()) {
| ^^^^^^^^^^^^^ patterns `(B, C)`, `D`, `E` and 1 more not covered
The error from stable looks similar, just with a different template:
error: non-exhaustive patterns: `(B, C)`, `D`, `E` and 1 more not covered [--explain E0004]
--> <anon>:7:5
7 |> match (A, ()) {
|> ^
If the matched item uses a different tuple nesting structure, the error message will fill in all the components of that structure with the enum values:
error[E0004]: non-exhaustive patterns: `((B, C), D)`, `E` and `F` not covered
--> <anon>:7:5
|
7 | match ((A, ()), ()) {
| ^^^^^^^^^^^^^^^^^^^ patterns `((B, C), D)`, `E` and `F` not covered
If the number of slots to fill in in the tuple structure exceeds the number of un-handled enum variants, the error message will use _ for the remaining slots:
error[E0004]: non-exhaustive patterns: `S(B, C)`, `D`, `E` and 1 more not covered
--> <anon>:8:5
|
8 | match S(A, ()) {
| ^^^^^^^^^^^^^^ patterns `S(B, C)`, `D`, `E` and 1 more not covered
error[E0004]: non-exhaustive patterns: `S { x: B, y: C }`, `D`, `E` and 1 more not covered
--> <anon>:8:5
|
8 | match (S { x: A, y: () }) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ patterns `S { x: B, y: C }`, `D`, `E` and 1 more not covered
The text was updated successfully, but these errors were encountered:
I can reproduce this in both stable and nightly. Minimal test case:
Error message from nightly:
The error from stable looks similar, just with a different template:
If the matched item uses a different tuple nesting structure, the error message will fill in all the components of that structure with the enum values:
If the number of slots to fill in in the tuple structure exceeds the number of un-handled enum variants, the error message will use _ for the remaining slots:
Edit: this also occurs with tuple structs:
And with structs:
The text was updated successfully, but these errors were encountered: