Error codes

View source

Reference for all 199 Actus compiler diagnostic codes, with explanations, examples, and fixes.

Every Actus compiler diagnostic has a stable E#### code. You can read any entry here or offline in your terminal with actus explain E#### (see Fixing and explaining errors).

Lexer & parserE0001–E0028 · 28
Ownership & typesE1001–E1099 · 92
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
Modules & rulesE1100–E1199 · 52
E1100module path cannot be resolvedE1101module has no canonical facadeE1102module is both a file and a directoryE1103module directory cannot be inspectedE1104facade names a sibling that does not existE1105module source file cannot be readE1106duplicate declaration in a moduleE1108import skips a parent facadeE1109declaration is not exported by its facadeE1110two modules declare one nameE1112standard-library module is not available for the targetE1113configuration module has an importE1114configuration module has a runtime declarationE1115import name is already boundE1116no performance for a dynamic roleE1117constant declared twiceE1118constant depends on itselfE1119name is outside the scope of its moduleE1120result marked must_use is ignoredE1121call needs an effect that the caller does not declareE1122role method implementation adds an effectE1123role method implementation changes must_useE1124deterministic code calls a nondeterministic verbE1125realtime code calls a verb with a forbidden effectE1126realtime code has an unbounded loopE1127realtime code uses floating pointE1128role method implementation drops realtimeE1129realtime code calls itself without a boundE1130bounded contract is exceeded or cannot be provenE1131call needs a capability that the caller does not declareE1132capability is not available for the targetE1133role method implementation adds a capabilityE1134invalid representation declarationE1135deterministic code uses floating pointE1136role method implementation drops deterministicE1137facade opens a name twiceE1138constant arithmetic overflows its typeE1139print of an integer wider than 64 bitsE1140operands of different integer typesE1141call of a verb that returns nothing used as a valueE1142assignment to a constantE1143test file or directory in the wrong placeE1144test verb in a production source fileE1145field moved out of a zero_on_drop ownerE1146`meta copy` on a type with a field that cannot be copiedE1147`abs` view of a scalar typeE1148struct field of an arena type that is not `erg`E1149a holder field holds a value of the holder's own arenaE1151local binding declared with the `ins` roleE1152call written with a dotE1153call that more than one verb or role method takesE1154call of a console verb that `std::io` no longer declares
Strict & toolchainE1800–E1899 · 27