Error codes
Every message from the compiler has a code, like E0200. Each code has a page that shows the mistake, the fix and the usual causes. In a terminal, auk explain E0200 prints the same page.
132 codes
E0001unexpected characterE0002unterminated string literalE0003unterminated block commentE0004malformed number literalE0005integer literal too largeE0006unknown escape sequenceE0007malformed char literalE0008malformed string interpolationE0009unmatched } in a stringE0010triple-quoted string line indented less than its closing quotesE0011semicolons are not usedE0012unclosed bracketE0013unmatched closing bracketE0020unexpected tokenE0021expected an expressionE0022expected a patternE0023expected a typeE0024expected an itemE0025expected the end of the statementE0026comparison operators cannot be chainedE0027invalid assignment targetE0028misplaced &E0029struct literal or else in a control-flow head needs parenthesesE0030invalid |> stepE0031function header line without clausesE0032let is a statement, not an expressionE0033invalid list patternE0034invalid map patternE0035return types use :, not ->E0036extern in a package without the ffi effectE0037malformed unit of measureE0038bitwise operator mixed with a comparison without parenthesesE0039?? used as a default operator (use else)E0040an extern declaration doesn't fit its C prototypeE0100dependency or file not foundE0101module name collides with a dependencyE0102unknown nameE0103no function for this receiver type (dot call)E0104unknown typeE0105shape used where a type is expected, or a type where a shape is expectedE0106wrong number of type argumentsE0107duplicate definitionE0108clauses disagree on a parameter typeE0109parameter type can't be determinedE0110clauses disagree on the return typeE0111function defined twice (non-contiguous clauses or duplicate overload)E0112the error type of T!E must be an enumE0113malformed shapeE0114unknown compiler intrinsicE0115constant depends on itselfE0116a local named like a module or dependency is used as a pathE0117a bare variant name would be core's Value variant where another enum is meantE0120private itemE0121private fieldE0200mismatched typesE0201a T!/T? value used where a plain value is expected (missing ?)E0202no overload takes this first argument typeE0203called value is not a functionE0204closure parameter count mismatchE0205if without else used as a valueE0207not iterableE0210integer literal out of rangeE0221unknown fieldE0222field access on an optional (use ?.)E0223bad tuple indexE0224missing fields in a struct literalE0225unknown or duplicate field in a struct literal or patternE0240the else of a refutable let must divergeE0241bad fail argumentE0242fail outside a function returning T!E0243? in a function that doesn't return T! or T?E0244break or continue outside a loopE0245bad break valueE0246return, ? or fail in a guard or constantE0247? can't convert this error typeE0248? on T! in a function returning T?E0249? on T? in a function returning T!E0250? on a value that is not T!, T? or a list of themE0251! on a value that is not T? or T!E0252?. on T! (optional chaining is for T? only)E0253?. on a non-optional valueE0254else e => on an optionalE0255else on a value that can't failE0260operator not applicable to these typesE0261operator not defined for a user type (missing add/sub/...)E0262pattern doesn't match the value's typeE0263an is pattern can't bind namesE0264wrong number of fields in a variant patternE0265name bound twice in a patternE0266struct pattern doesn't mention every fieldE0267the alternatives of an or-pattern bind different names or typesE0270not indexableE0280format precision on a type without oneE0281zero-padding format on a non-numberE0282malformed format specE0283a hex, octal or binary format on a non-intE0290mismatched units in an operatorE0291mismatched units of measureE0292the unit of a power or root can't be computedE0293bitwise operator on a value with a unitE0300wrong number of argumentsE0301ambiguous overloadE0302wrong number of values for a variantE0310missing & for a var parameterE0311& on an argument for a non-var parameterE0320assignment to something immutableE0322strings are immutableE0323closure assigns to a captured variableE0331await on something that is not a taskE0332unawaited async fn callE0333un-awaited async fn call used as its resultE0334the error of a T! value is ignoredE0335return inside catchE0336an async fn with a var parameter started as a taskE0350type doesn't fit a shapeE0360type can't be inferredE0370unsupported main signatureE0400patterns don't cover every caseE0401unreachable clause or armE0402let ... else whose pattern always matchesE0403pattern that might not match where one must always matchE0410effect used but not declaredE0411effect declared but not usedE0412constant initializer with an effectE0413effect not allowed by the package's raft.tomlE0414unknown effectE0415conversion to any Shape exceeds the shape method's effectsE0418raw is only for the runtimeE0419a reference-counted type in uses raw code or a raw structE0420imprint panicked at compile timeE0421not a compile-time constant, or a raw assert that failsE0422per-target files of a module disagree on what the package uses