Programming & Systems Guides
Empirical benchmarks and systems guides appear first, followed by the compiler and error-code reference archive. Browse by topic, jump to the error reference archive, or subscribe via RSS.
-
E0117 Orphan Rule Fix Rust · Error Reference
Rust error E0117 means an impl tried to implement a trait defined outside the current crate for a type defined outside the current crate, with every type...
-
E0063 Missing Fields in Struct Fix Rust · Error Reference
Rust error E0063, missing field in a struct or struct-like enum variant initializer, means a struct expression left out at least one field the type...
-
E0621 Explicit Lifetime Required Fix Rust · Error Reference
Rust error E0621, explicit lifetime required in the type of a parameter, means a function returns a reference tied to one named lifetime while its body also...
-
E0618 Expected Function Fix Rust · Error Reference
Rust error E0618, expected function, found a value of another type, means call parentheses were placed after something that is not callable - an integer, a...
-
E0508 Cannot Move Out of Array Fix Rust · Error Reference
Rust error E0508, cannot move out of a non-copy array, means a program tried to move one element out of a fixed-size array whose element type does not...
-
E0600 Cannot Apply Unary Operator Fix Rust · Error Reference
Rust error E0600, cannot apply unary operator, means a program applied the unary `-` or `!` operator to a type that does not implement the matching trait...
-
E0521 Borrowed Data Escapes Closure Fix Rust · Error Reference
Rust error E0521, borrowed data escapes outside of closure, means a closure stores a reference to one of its parameters in a place that outlives the closure...
-
Was Not Declared in This Scope Fix C++ · Error Reference
This error means the compiler reached a name and found no declaration for it in the scope where it is used: a misspelled name, a name used before its...
-
C++ Invalid Types Array Subscript Fix C++ · Error Reference
This error means the value before the brackets is a single value, not an array, a pointer, or a type with its own subscript operator: an int, a double, a...
-
C++ Return Value in Void Fix C++ · Error Reference
This error means the function was declared void but its return statement carries a value: a literal, an arithmetic expression, a local variable, the result...
-
C++ No Member Named Fix C++ · Error Reference
This error means the name after a dot is not a member of the object's class: a misspelled member name, a member that belongs to a different standard...
-
C++ Invalid Type Argument Unary * Fix C++ · Error Reference
This error means the value after the star is not a pointer: an int, a double, a char, a bool, a null pointer value, or an int returned by a function. This...
-
C++ Invalid Operands Binary Operator Fix C++ · Error Reference
This error means a built-in binary operator was given a pair of operand types it does not accept: two pointers added together, two string literals added...
-
C++ Invalid Conversion Void* Fix C++ · Error Reference
This error means a void* value was used where an int* is required, and C++ provides no implicit conversion in that direction: a void* variable initializing...
-
C++ Extra Qualification Fix C++ · Error Reference
This error means a member inside its own class definition was written with the class name in front of it: Foo::bar, Foo::count, Foo::Foo, a qualified static...
-
C++ Expected Unqualified-Id Fix C++ · Error Reference
This error means the compiler reached a place where a name had to appear and found something that cannot be a name instead: a keyword used as a variable or...
-
C++ Else Without Previous If Fix C++ · Error Reference
This error means an else appears where no unmatched if is waiting for it: an else with no if at all, an else after a plain braced block, an else separated...
-
C++ Read-Only Assignment Fix C++ · Error Reference
This error means the variable on the left of an assignment was declared const: a const local reassigned later, a const auto variable updated in a loop, a...
-
E0381 Uninitialized Use Fix Rust · Error Reference
Rust error E0381, used binding isn't initialized or is possibly-uninitialized, means a binding was declared without a value and then used on a path...
-
E0046 Missing Trait Items Fix Rust · Error Reference
Rust error E0046, not all trait items implemented, means a trait implementation left out a required item - a method with no default, an associated type, or...
-
E0605 Invalid Cast Fix Rust · Error Reference
Rust error E0605, non-primitive cast, means an `as` expression tried to convert between types that are not both primitives: casting an array to an integer...
-
E0616 Field Is Private Fix Rust · Error Reference
Rust error E0616, field of struct is private, means code outside the module that defines a struct tried to name one of its fields: reading a field from...
-
E0500 Closure Unique Access Fix Rust · Error Reference
Rust error E0500, closure requires unique access to a value but it is already borrowed, means a closure tried to mutate a value through a mutable reference...
-
E0373 Closure May Outlive Fix Rust · Error Reference
Rust error E0373, closure may outlive the current function but it borrows a local variable, means a closure that escapes a function still holds a reference...
-
E0593 Closure Argument Count Fix Rust · Error Reference
Rust error E0593, closure is expected to take a different number of arguments than it takes, means a closure was supplied to a place that calls it with a...
-
E0614 Cannot Dereference Fix Rust · Error Reference
Rust error E0614, type cannot be dereferenced, means the * operator was applied to a value that is not a reference, a raw pointer, or a type implementing...
-
E0502 Cannot Borrow Fix Rust · Error Reference
Rust error E0502, cannot borrow as mutable because it is also borrowed as immutable - and its mirror, cannot borrow as immutable because it is also borrowed...
-
E0384 Cannot Assign Fix Rust · Error Reference
Rust error E0384, cannot assign twice to immutable variable, means a second assignment was made to a binding that was declared without mut: variables are...
-
C++ Undefined Reference to Main Fix C++ · Error Reference
The linker, not the compiler, reports a missing main: no main at all, main inside a namespace, a capitalised Main, a main that is declared but never...
-
C++ Undefined Reference to Function Fix C++ · Error Reference
Every file compiles and the link still fails with undefined reference to one ordinary function: its definition sits in a file left out of the link command...