E0308E0308 — Mismatched Types
The expected type does not match the actual type provided.
E0373A closure captures a reference to a variable that may not live long enough.
The closure borrows a local variable, but the closure might outlive the variable's scope. This is common when passing closures to threads or storing them in structs.
Use the move keyword to transfer ownership: move || { ... }. Clone the variable before the closure if you need the original. Ensure the captured data lives long enough for the closure's lifetime.
E0308The expected type does not match the actual type provided.
E0658A feature that is not yet stabilized in Rust is being used without the feature gate.
E0317An if expression used as a value is missing an else branch.
E0119Two or more implementations of the same trait exist for the same type.
E0277A type does not implement a required trait.
E0425An identifier is used but not defined in the current scope.