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
<source>:7:11: error: non-exhaustive patterns: 'E::B()' not covered
7 | match e {
| ^
Compiler returned: 1
Expected behavior
I expected to see...
error[E0004]: non-exhaustive patterns: `A` and `B` not covered
--> <source>:7:11
|
1 | / enum E {
2 | | A(),
| | - not covered
3 | | B(),
| | - not covered
4 | | }
| |_- `E` defined here
...
7 | match e {
| ^ patterns `A` and `B` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
= note: the matched value is of type `E`
error: aborting due to previous error
Summary
related to #3172
Reproducer
I tried this code:
Does the code make use of any (1.49) nightly feature ?
Godbolt link
https://godbolt.org/z/97fnfov7h
Actual behavior
The current behavior is...
Expected behavior
I expected to see...
GCC Version
67bc0f6
The text was updated successfully, but these errors were encountered: