Prefer "0..MAX not covered" to "_ not covered"
This commit is contained in:
parent
970f46c60d
commit
9dca6be7b8
7 changed files with 32 additions and 34 deletions
|
@ -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 => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue