E0308E0308 — Mismatched Types
The expected type does not match the actual type provided.
E0728The .await keyword is used in a function that is not declared async.
You are using .await inside a function that does not have the async keyword. Only async functions and blocks can use .await.
Add async to the function declaration. Wrap the await in an async block. Use block_on or a runtime to execute async code from synchronous contexts.
E0308The expected type does not match the actual type provided.
E0596You are trying to mutably borrow a value that is not declared as mutable.
E0369A binary operator is used with types that do not support it.
E0423A type name is used where a value was expected.
E0502A value cannot be mutably borrowed while an immutable borrow is still active.
E0503A value cannot be used while it is mutably borrowed by another variable.