Rust guides
Rust guides: async runtimes and embedded targets, with what actually runs under QEMU.
-
E0423 Expected Value Fix Error Reference
Rust error E0423, expected value, means a name was used where a value was needed but the name lives in a different namespace - a braced struct called with...
-
E0252 Duplicate Import Fix Error Reference
Rust error E0252, the name is defined multiple times, means two use declarations bound the same name in the same namespace and scope - the same item...
-
E0428 Duplicate Definition Fix Error Reference
Rust error E0428, the name is defined multiple times, means two definitions claimed the same name in the same namespace of the same scope - two functions...
-
E0119 Conflicting Impl Fix Error Reference
Rust error E0119, conflicting implementations of a trait, means two impl blocks can apply to the same trait and type pair - the same trait implemented twice...
-
E0503 Cannot Use Fix Error Reference
Rust error E0503, cannot use a value because it was mutably borrowed, means code tried to use a value - read it in an expression, pass it by value, call a...
-
E0509 Cannot Move Out Fix Error Reference
Rust error E0509, cannot move out of type which implements the Drop trait, means code tried to move a field or a payload out of a value whose type has a...
-
E0505 Cannot Move Out Fix Error Reference
Rust error E0505, cannot move out of a value because it is borrowed, means code tried to move a value - into another binding, a function that takes...
-
E0425 Cannot Find Value Fix Error Reference
Rust error E0425, cannot find value in this scope, means an unresolved name was used: the compiler found no binding, function, or imported item with that...
-
E0594 Cannot Assign Fix Error Reference
Rust error E0594, cannot assign, means an assignment reached a place that is not writable: the value sits behind a shared reference, or the binding was...
-
E0369 Binary Operation Fix Error Reference
Rust error E0369, binary operation cannot be applied, means an operator was used on a type that does not implement the trait behind that operator - equality...
-
E0506 Assign While Borrowed Fix Error Reference
Rust error E0506, cannot assign to a value because it is borrowed, means a plain assignment tried to replace a value - a variable, a struct field, a whole...
-
Fix Rust E0282 "type annotations needed" — a Vec::new Never Filled, a collect() Followed by len(), a Bare None, and a Generic Function Returning Default Error Reference
Rust error E0282, type annotations needed, means type inference did not reach one unique type and the compiler needs the missing type stated. This guide...
-
Fix Rust E0277 "the trait bound ... is not satisfied" — Missing Trait Impl, Missing Ord, the ? Conversion, Sized, and Clone Error Reference
Rust error E0277, the trait bound is not satisfied, means a type was used in a place that requires a trait the type does not implement: a generic function...
-
Fix Rust E0599 "no method named" — Import the Trait, Fix the Receiver, or Use the Current Name Error Reference
Rust error E0599, no method named, means a method call found no visible method of that name on the receiver's type: the method belongs to a trait that...
-
Fix Rust E0308 "mismatched types" — Convert the Value, Fix the Signature, or Give Both Sides One Type Error Reference
Rust error E0308, mismatched types, means an expression produced one type where a different type was required: an i32 passed where an i64 belongs, if and...
-
Fix Rust E0597 "`x` does not live long enough" — a Block Scope, a Stored Reference, a Struct Field, and a Closure Capture Error Reference
Rust error E0597, `x` does not live long enough, means a borrowed value was dropped while a reference to it was still going to be used. This guide...
-
Fix Rust E0515 "cannot return value referencing local variable" — a Local String, a Local Number, a Local Vec Slice, and a Struct Wrapping a Local Error Reference
Rust error E0515, cannot return value referencing local variable, means a function tried to return a reference to a value it created itself, and that value...
-
Fix Rust E0507 "cannot move out of ..." — Vec Index, HashMap Index, a Shared Reference, a Struct Field, and a Mutable Reference Error Reference
Rust error E0507, cannot move out of, means a value that does not implement Copy was moved out of a place the code does not own outright: an element reached...
-
Fix Rust E0499 "cannot borrow as mutable more than once at a time" — Two Bindings, a Function Call, Two Vec Elements, and a Method Call Error Reference
Rust error E0499, cannot borrow as mutable more than once at a time, means a second mutable borrow was created while a first mutable borrow of the same...
-
Fix Rust E0502 "cannot borrow as mutable because it is also borrowed as immutable" — End the First Borrow, Split the Work, or Restructure Error Reference
Rust error E0502, cannot borrow as mutable because it is also borrowed as immutable, means a shared borrow is still alive at the point where the code asks...
-
Fix Rust E0596 "cannot borrow as mutable" — a Vec Without mut, a Function Taking &Vec, a &self Method Pushing to a Field, and a Shared Reference in a Binding Error Reference
Rust error E0596, cannot borrow as mutable, means code tried to mutate a value without mutable permission — either the binding was not declared as mutable...
-
Fix Rust E0382 "borrow of moved value" — Borrow Instead of Moving, Return the Value, or Clone on Purpose Error Reference
Rust error E0382, borrow of moved value, means a value was moved — into a function, another binding, a loop, or a closure — and the code then tried to use...