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
so it should be pretty simple - if there are no arms, then it returns !. if there are no arms when there should be arms, then it's up to the exhaustiveness checker to report an error
Summary
Match expressions with no arms should give a value of type
!
Reproducer
I tried this code:
Does the code make use of any (1.49) nightly feature ?
Godbolt link
link
Actual behavior
Expected behavior
No error
GCC Version
GCCRS master on godbolt
The text was updated successfully, but these errors were encountered: