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
$rustc test.rs
test.rs:19:5: 19:15 error: unreachable pattern [E0001]
test.rs:19 LitBool(_) => PLitBool
^~~~~~~~~~
test.rs:19:5: 19:15 help: pass `--explain E0001` to see a detailed explanation
error: aborting due to previous error
But this is wrong, the error is because LitNil doesn't exist anymore. I guess the compiler should check that enum variants used in patterns exist before checking if they can be reached. The test.rs file code is:
The code presented next reports:
But this is wrong, the error is because
LitNil
doesn't exist anymore. I guess the compiler should check that enum variants used in patterns exist before checking if they can be reached. The test.rs file code is:The text was updated successfully, but these errors were encountered: