1
Fork 0

Typecheck never patterns

This commit is contained in:
Nadrieril 2024-01-05 17:21:09 +01:00
parent a947c4c2c3
commit d8b72e796e
6 changed files with 110 additions and 7 deletions

View file

@ -234,6 +234,11 @@ mir_build_mutation_of_layout_constrained_field_requires_unsafe_unsafe_op_in_unsa
mir_build_non_const_path = runtime values cannot be referenced in patterns
mir_build_non_empty_never_pattern =
mismatched types
.label = a never pattern must be used on an uninhabited type
.note = the matched value is of type `{$ty}`
mir_build_non_exhaustive_match_all_arms_guarded =
match arms with guards don't count towards exhaustivity