Open
Description
An exhaustive list of the error handling that needs to be done for patterns with the respective rustc error codes.
Main:
- E0005 (Patterns used to bind names must be irrefutable)E0023 (A pattern attempted to extract an incorrect number of fields from a variant)E0025 (Each field of a struct can only be bound once in a pattern)E0026 (A struct pattern attempted to extract a non-existent field from a struct)E0027 (A pattern for a struct fails to specify a sub-pattern for every one of the struct's fields)E0029 (Something other than numbers and characters has been used for a range pattern)E0030 (Empty range pattern e.g.
2..=1
)E0170 (A pattern binding is using the same name as one of the variants of a type)E0408 (An "or" pattern was used where the variable bindings are not consistently bound across patterns)E0409 (An "or" pattern was used where the variable bindings are not consistently bound across patterns)E0415 (More than one function parameter have the same name)E0416 (An identifier is bound more than once in a pattern)E0527 (The number of elements in an array or slice pattern differed from the number of elements in the array being matched)E0528 (An array or slice pattern required more elements than were present in the matched array)E0529 (An array or slice pattern was matched against some other type)E0642 (Trait methods currently cannot take patterns as arguments)E0769 (A tuple struct or tuple variant was used in a pattern as if it were a struct or struct variant)E0783 (The range pattern...
is no longer allowed)
Additional:
- E0004 (Match arms are not exhaustive)
Not sure:
- E0130 (A pattern was declared as an argument in a foreign function declaration) (?)E0158 (An associated const, const parameter or static has been referenced in a pattern)E0164 (Something which is neither a tuple struct nor a tuple variant was used in a pattern)E0532 (Pattern arm did not match expected kind of enum variant)E0533 (An item which isn't a unit struct, a variant, nor a constant has been used as a match pattern)E0561 (A non-ident or non-wildcard pattern has been used as a parameter of a function pointer type)E0730 (An array without a fixed length was pattern-matched)
Metadata
Metadata
Assignees
Type
Projects
Status
Todo
Activity