Rust guides
Rust guides: async runtimes and embedded targets, with what actually runs under QEMU.
-
E0607 Thin-to-Fat Pointer Cast Fix Error Reference
Rust error E0607, cannot cast thin pointer to wide pointer, means an `as` cast tried to turn a pointer that carries only an address into a pointer that also...
-
E0446 Private Type in Public Fix Error Reference
Rust error E0446 means a private type was used in a public associated type signature: an implementation of a public trait sets an associated type to a type...
-
E0451 Private Struct Field Fix Error Reference
Rust error E0451 means a struct literal named a field that is private outside the module that defines the struct. This guide reproduces the error on an...
-
E0604 Only u8 Cast as Char Fix Error Reference
Rust error E0604, only u8 can be cast as char, means an as cast to char was attempted from a type other than u8 - in this guide's probed set every other...
-
E0015 Non-Const Call in Const Context Fix Error Reference
Rust error E0015, a non-const function called in a const context, means a const fn, a const item, a static initializer, an array length, or a const generic...
-
E0034 Multiple Applicable Items Fix Error Reference
Rust error E0034, multiple applicable items in scope, means a name reached two applicable items and the compiler will not choose between them: two traits...
-
E0049 Method Type Parameter Count Fix Error Reference
Rust error E0049, a method in an impl has a different number of type parameters than the trait method it implements, means the generic parameter list on the...
-
E0067 Invalid Left-Hand Side Fix Error Reference
Rust error E0067, invalid left-hand side of assignment, fires when a compound assignment such as += targets something that is not a place - a literal, an...
-
E0747 Generic Argument Order Fix Error Reference
Rust error E0747 means generic arguments were provided in a different order or kind than the generic parameters are declared: a type argument where a...
-
E0124 Field Already Declared Fix Error Reference
Rust error E0124, a field is already declared, means a struct declaration named the same field twice. This guide reproduces the error for duplicate fields...
-
E0415 Duplicate Parameter Name Fix Error Reference
Rust error E0415, identifier bound more than once in this parameter list, means one parameter list binds the same name twice - in a function, a method, a...
-
E0592 Duplicate Method Definition Fix Error Reference
Rust error E0592, duplicate definitions with the same name, means two methods or associated functions with one name were defined for the same type in...
-
E0368 Assignment Operation Cannot Apply Fix Error Reference
Rust error E0368, a binary assignment operation cannot be applied to a type, means a compound assignment such as += or <<= was used on a type pair with...
-
E0659 Ambiguous Name Fix Error Reference
Rust error E0659, a name is ambiguous, means two glob imports bring the same name into a module and the code uses that name, so the compiler cannot tell...
-
E0223 Ambiguous Associated Type Fix Error Reference
Rust error E0223, ambiguous associated type, means an associated type was named without saying which trait implementation supplies it: a trait name alone...
-
E0408 Variable Not Bound in All Patterns Fix Error Reference
Rust error E0408, variable is not bound in all patterns, means one alternative of an or-pattern binds a variable and another alternative does not: a tuple...
-
E0426 Undeclared Label Used Fix Error Reference
Rust error E0426, use of undeclared label, means a break or continue named a label that no enclosing loop or labeled block declares. This guide reproduces...
-
E0524 Two Closures Require Unique Access Fix Error Reference
Rust error E0524, two closures require unique access at the same time, means two closures that are both still live have each captured the same mutable...
-
E0782 Trait Object Needs dyn Fix Error Reference
Rust error E0782, expected a type and found a trait, means a trait object type was written without the dyn keyword - Box
, &Shape, or a bare... -
E0424 Self Used Without a Receiver Fix Error Reference
Rust error E0424, cannot find value self in this scope, means self was used in a function that has no self receiver: an associated function, a trait default...
-
E0606 Incompatible Cast Fix Error Reference
Rust error E0606, casting one type as another is invalid, means an `as` cast fell outside the cast table: a reference cast to an integer, a string reference...
-
E0255 Import Name Conflict Fix Error Reference
Rust error E0255, the name is defined multiple times, means a use import and an item defined in the same module claim the same name in the same namespace...
-
E0774 Derive on Non-Type Item Fix Error Reference
Rust error E0774, derive may only be applied to structs, enums and unions, means a derive attribute was placed on an item that is none of those - a...
-
E0501 Cannot Borrow as Immutable Fix Error Reference
Rust error E0501, cannot borrow as immutable because a previous closure requires unique access, means a closure has captured a mutable reference - a &mut...
-
E0409 Bound Inconsistently Across Patterns Fix Error Reference
Rust error E0409, variable bound inconsistently across alternatives separated by a pipe, means one alternative of an or-pattern binds a variable one way and...
-
E0713 Borrow in Use When Destructor Runs Fix Error Reference
Rust error E0713, borrow may still be in use when destructor runs, means a function takes a value that implements Drop by value and tries to return a borrow...
-
E0207 Unconstrained Type Parameter Fix Error Reference
Rust error E0207 - the type parameter is not constrained by the impl trait, self type, or predicates - fires when an impl declares a type, const, or...
-
E0793 Reference to Packed Field Fix Error Reference
Rust error E0793 - reference to field of packed struct is unaligned - fires when code takes a reference to a field of a #[repr(packed)] struct whose type...
-
E0027 Pattern Does Not Mention Fields Fix Error Reference
Rust error E0027 - pattern does not mention field - fires when a struct pattern leaves out a field the declaration has: let Point { x } = p; omits y from...
-
E0435 Non-Constant Value in Constant Fix Error Reference
Rust error E0435 - attempt to use a non-constant value in a constant - fires when a constant expression names something that is only known at run time: a...