1
Fork 0

Prefer "0..MAX not covered" to "_ not covered"

This commit is contained in:
Nadrieril 2024-02-07 04:00:02 +01:00
parent 970f46c60d
commit 9dca6be7b8
7 changed files with 32 additions and 34 deletions

View file

@ -43,10 +43,10 @@ fn empty_foreign_enum_private(x: Option<empty::SecretlyUninhabitedForeignStruct>
fn main() {
match 0u8 {
//~^ ERROR `_` not covered
//~^ ERROR not covered
//~| NOTE the matched value is of type
//~| NOTE match arms with guards don't count towards exhaustivity
//~| NOTE pattern `_` not covered
//~| NOTE not covered
_ if false => {}
}
}