Ownership & types

View source

Diagnostics for bindings, ownership roles, moves, borrows, types, structs, enums, generics, packs, arenas, and arrays. (E1001–E1099, 92 codes).

Diagnostics for bindings, ownership roles, moves, borrows, types, structs, enums, generics, packs, arenas, and arrays. Use actus explain E#### in your terminal to read any entry offline.

92 codesE1001–E1099
E1001binding declared twice in one scopeE1002binding hides one from an enclosing scopeE1003undeclared identifierE1004borrow of a binding that is not an ownerE1005use of a moved bindingE1006use of a dropped bindingE1007binding dropped twiceE1008drop of a borrowed parameterE1009drop of a binding that is borrowedE1010value cannot be moved out of a view or transferred with datE1011move or mutate of a frozen bindingE1012unknown parameter name in a callE1013parameter named twice in a callE1014named and positional arguments mixedE1015wrong number of argumentsE1016argument does not satisfy the parameter's roleE1017positional call is ambiguousE1018borrowed value returned as an ownerE1019owner initialized from a viewE1020break or continue outside a loopE1021invalid argument for a built-in intrinsicE1022verb name reserved for an intrinsicE1023unknown typeE1024verb declared twiceE1025argument of the wrong typeE1026returned value has the wrong typeE1027initializer does not match the declared typeE1028verb does not return a value on every pathE1029struct declared twiceE1030field declared twice in a structE1031unknown field of a structE1032field missing from a struct literalE1033field value has the wrong typeE1034field assigned through a viewE1035field of a frozen struct changed or movedE1037invalid receiver for a methodE1040unknown enum variantE1041wrong number of values for an enum variantE1042argument name does not fit the enum variantE1043enum variant value has the wrong typeE1044type contains itself without indirectionE1045case does not cover every valueE1046pattern can never matchE1047pattern repeated in a caseE1048pattern does not fit the subjectE1050case mode does not fit the subjectE1051mutation of a read-only bindingE1052type parameter is not declared or not knownE1053wrong number of type argumentsE1054type argument does not meet its constraintE1055duplicate role declarationE1056unknown roleE1057duplicate method in a roleE1058performance misses a method of its roleE1059method does not match its roleE1060role method has no explicit receiverE1061branches leave a binding in different statesE1062guard needs more than read-only accessE1063condition is not a BoolE1065one call borrows the same value twiceE1066returned view has no single abs originE1067cannot infer which Result is builtE1068integer literal outside the range of its typeE1069call to an unknown verbE1070pack storage is not unsigned fixed storageE1071pack field has a type that is not an integerE1072pack field extends past the storageE1073pack fields overlapE1074pack leaves bits uncoveredE1076arena capacity is not a positive constantE1077arena reference escapes its arenaE1078value mixes two arenasE1079arena moved or dropped while a reference is liveE1081duplicate pack declarationE1082exclusive loan escapes its callE1083array capacity is not a positive constantE1084array index is not an integerE1085constant index outside the arrayE1086value cannot be indexedE1087stored value does not fit the element typeE1088region element has no fixed native sizeE1089dynamic parameter must be absE1090cast between types that are not both integersE1091literal does not fit the cast targetE1092constant remainder by zeroE1093constant shift count outside the type widthE1094struct field cannot hold an ins loanE1095assignment to an abs struct fieldE1096aggregate assigned to itselfE1097constant needs a compile-time valueE1098invalid serialization contractE1099dynamic role is not declared