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
The compiler doesn't check for conditions being exhausted when using arbitrary expressions (#74277). This adds a note with example specifying that you need to cover all remaining conditions with `_`.
My only concern is that my example may encourage people to use match guards as I did there, instead of something like:
```rust
match number {
0 => println!("Zero"),
1..=u8::MAX => println!("Greater than zero"),
}
```
0 commit comments