Error code E0162
Note: this error code is no longer emitted by the compiler.
An if let
pattern attempts to match the pattern, and enters the body if the
match was successful. If the match is irrefutable (when it cannot fail to
match), use a regular let
-binding instead. For instance:
Try this instead: