Add a note with a link to explain empty types
This commit is contained in:
parent
25964b541e
commit
efb28bdd90
18 changed files with 171 additions and 17 deletions
|
@ -332,6 +332,7 @@ mir_build_unreachable_matches_same_values = matches some of the same values
|
|||
mir_build_unreachable_pattern = unreachable pattern
|
||||
.label = no value can reach this
|
||||
.unreachable_matches_no_values = matches no values because `{$ty}` is uninhabited
|
||||
.unreachable_uninhabited_note = to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
||||
.unreachable_covered_by_catchall = matches any value
|
||||
.unreachable_covered_by_one = matches all the relevant values
|
||||
.unreachable_covered_by_many = multiple earlier patterns match some of the same values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue