E0001 |
Unexpected token or malformed construct |
E0002 |
Invalid character, unterminated string or comment |
E0003 |
Statement not ended by ; |
E0004 |
Left side of = is not assignable |
E0005 |
Field given twice in a struct literal |
E1001 |
Undefined name, type or trait |
E1002 |
A name declared twice in the same scope |
E1003 |
A pattern names a value where nothing could use the name |
E1004 |
A variable, parameter or name of a pattern nothing uses (a warning) |
E2001 |
Types do not match |
E2002 |
return outside a function |
E2003 |
A return of the wrong type |
E2004 |
A path of the function does not return |
E2005 |
A condition that is not a Bool |
E2006 |
An operator on values it does not apply to |
E2007 |
A unary operator on a value it does not apply to |
E2008 |
A call of what is not a function |
E2009 |
The wrong number of arguments |
E2010 |
An argument of the wrong type |
E2011 |
for over what cannot be gone through |
E2012 |
A trait method an impl leaves out |
E2013 |
A method whose signature is not the trait's |
E2014 |
A field the struct has not |
E2015 |
A method the type has not |
E2016 |
A struct that is not declared |
E2017 |
A value that may be null, used as if it could not |
E2018 |
A field left out of a struct literal |
E2019 |
A method declared twice |
E2020 |
An empty array with nothing to say its type |
E2021 |
A cast that can never succeed |
E2022 |
An assignment to a constant |
E2023 |
Code that can never run (a warning) |
E2024 |
Type arguments on a method that takes none, or the wrong number |
E2025 |
A whole number outside what an Int holds |
E2026 |
An assignment to the variable of a for loop |
E2027 |
A method that is not pub, called from another module |
E2028 |
A match on an enum that leaves variants out |
E2029 |
A pattern that cannot match the value |
E2030 |
An unknown variant, the wrong number of values, an enum used as a value |
E2031 |
A constant defined in terms of itself |
E2032 |
A constant whose value is not made of constants |
E2033 |
.length on an array or a text: it is .len() |
E2034 |
value? where there is no failure to pass on, or nowhere to pass it |
E2035 |
value?.member on a value that cannot be null |
E2036 |
A type argument that does not implement what its parameter requires |
E2037 |
A function written with -> where nothing says its types |
E2038 |
A range that is not of whole numbers, or used as a value |
E2039 |
A defer that tries to leave: return, ?, break or continue of an outer loop |
E2040 |
A match that gives a value, with a case that gives none |
E2041 |
A variant written alone that several enums have, and nothing says which |
E2042 |
A field of a struct of another module that is not pub |
E2043 |
A waitable made and thrown away: put wait before it |
E2044 |
wait on what cannot be waited for |
E3001 |
A generic function or type whose type arguments cannot be worked out |
E3002 |
Generic types that would make each other forever |
E3003 |
The wrong number of type arguments |
E4101 |
Closures that capture each other in a circle |
E5002 |
A name that cannot be used as a value |
E5003 |
The target of an assignment cannot be written |
E5005 |
break or continue outside a loop |
E6001–E6003 |
A function, a program or its constants too large for the bytecode: 65 536 registers, constants and functions |
E6006 |
A program with no usable main |
E6007 |
A call with more arguments than an instruction can take |
E7002 |
An extern fn the runtime does not provide |
E8001 |
No file for an imported module |
E8002 |
A module that does not declare the name asked for |
E8003 |
A name that is not pub |
E8004 |
An import that clashes with another name |
E8005 |
A module or type used where a value is expected, or the reverse |
E8006 |
An import that cannot work: the entry file, a module re-exported |
E8007 |
Statements outside a function, in a module where they cannot run |
E8008 |
A variant built or matched by names it has not |
E8009 |
A pub declaration that uses a type other modules cannot name |
E8010 |
An import nothing uses (a warning) |
E8011 |
A method that does not use self (a warning) |
E8012 |
A static function that uses self |