An expression's type does not match what is expected at that location. This is one of the most common rustc errors, arising when passing arguments of the wrong type, assigning incompatible types, or mismatching function return types.
E0308
rust An expression's type does not match what is expected at that location. This is one of the most common rustc errors, arising when passing arguments of the wrong type, assigning incompatible types, or mismatching function return types.