E0308E0308 — Mismatched Types
The expected type does not match the actual type provided.
E0317An if expression used as a value is missing an else branch.
When an if expression is used to produce a value, it must have an else branch so that a value is produced in all cases. Without else, the expression might not produce a value.
Add an else clause that returns a value of the same type. If the if block has side effects only, add a semicolon to make it a statement. Return a default value in the else branch.
E0308The expected type does not match the actual type provided.
E0503A value cannot be used while it is mutably borrowed by another variable.
E0373A closure captures a reference to a variable that may not live long enough.
E0432The module or item referenced in a use statement cannot be found.
E0015A non-const function is called in a constant expression context.
E0658A feature that is not yet stabilized in Rust is being used without the feature gate.