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
fnfoo(c:char){match c {'\u0000'..'\ud7ff' | '\ue000'..'\uffff' => println!("BMP"),'\U00010000'..'\U0010ffff' => println!("non-BMP"),}}
...results in:
<anon>:2:5: 5:6 error: non-exhaustive patterns: `_` not covered [E0004]
<anon>:2 match c {
<anon>:3 '\u0000'..'\ud7ff' | '\ue000'..'\uffff' => println!("BMP"),
<anon>:4 '\U00010000'..'\U0010ffff' => println!("non-BMP"),
<anon>:5 }
These patterns clearly encompass the entire domain of char but the exhaustiveness checker doesn't know that. In fact, this occurs for every scalar value:
...results in:
These patterns clearly encompass the entire domain of
char
but the exhaustiveness checker doesn't know that. In fact, this occurs for every scalar value:...but
char
is the prominent example of this issue.The text was updated successfully, but these errors were encountered: