Rust Compiler Errors
Error codes emitted by the Rust compiler (rustc), covering type checking, borrow checking, pattern matching, and other compile-time diagnostics.
77 codes
-
E0001Unreachable Match Arm -
E0004Non-exhaustive Match -
E0005Refutable Pattern in Binding -
E0015Non-const in Const Context -
E0023Wrong Pattern Field Count -
E0025Duplicate Field Binding -
E0026Nonexistent Struct Field -
E0027Missing Struct Pattern Fields -
E0046Missing Trait Items -
E0050Wrong Method Parameter Count -
E0054Cast to Bool -
E0061Wrong Argument Count -
E0062Duplicate Struct Field Init -
E0063Missing Struct Field Init -
E0072Recursive Type Without Indirection -
E0080Constant Evaluation Failed -
E0106Missing Lifetime Parameter -
E0107Wrong Generic Argument Count -
E0116Impl on Foreign Type -
E0117Orphan Rule Violation -
E0119Conflicting Trait Implementations -
E0120Drop on Invalid Type -
E0121Placeholder in Item Signature -
E0124Duplicate Struct Field Name -
E0128Forward Declared Type Default -
E0133Unsafe Code Outside Block -
E0152Duplicate Lang Item -
E0201Duplicate Associated Item -
E0210Orphan Rule Type Parameter -
E0220Undefined Associated Type -
E0229Misplaced Associated Constraint -
E0252Duplicate Import Name -
E0261Undeclared Lifetime -
E0277Trait Bound Not Satisfied -
E0283Ambiguous Type Inference -
E0308Type Mismatch -
E0317Missing else Branch -
E0369Binary Operation Not Supported -
E0382Use After Move -
E0384Immutable Variable Reassignment -
E0391Circular Trait Dependency -
E0401Inner Item Uses Outer Generic -
E0403Duplicate Generic Parameter -
E0404Expected Trait, Found Type -
E0405Trait Not in Scope -
E0407Method Not in Trait -
E0412Unresolved Type Name -
E0416Duplicate Pattern Binding -
E0425Unresolved Name -
E0428Duplicate Definition -
E0432Unresolved Import -
E0433Undeclared Crate or Module -
E0434Inner Function Captures Environment -
E0499Multiple Mutable Borrows -
E0500Closure Borrows Borrowed Variable -
E0502Conflicting Borrow Kinds -
E0505Move While Borrowed -
E0506Assign to Borrowed Value -
E0507Move Out of Borrow -
E0515Return Reference to Local -
E0516Unsupported typeof Keyword -
E0517Invalid repr Attribute Target -
E0560Unknown Struct Field -
E0562impl Trait Outside Signature -
E0594Assign to Immutable Variable -
E0596Cannot Mutably Borrow Immutable -
E0597Value Dropped While Borrowed -
E0599Method Not Found -
E0601Missing main Function -
E0603Private Item Access -
E0605Invalid Type Cast -
E0614Dereference of Non-pointer -
E0616Private Field Access -
E0618Call of Non-function -
E0620Cast to Unsized Type -
E0635Unknown Feature Flag -
E0658Unstable Feature Used