E0308E0308 — Closure Return Type Mismatch
The closure returns a different type than expected by the context.
E0423A type name is used where a value was expected.
You are trying to use a struct name as a value without providing field values. Tuple structs and unit structs have different construction syntax than regular structs with named fields.
Use struct literal syntax: MyStruct { field: value }. For unit structs, just use the name. For tuple structs, use MyStruct(value). Check if you meant to call a constructor function.
E0308The closure returns a different type than expected by the context.
clippy::let_and_returnA variable is declared and immediately returned on the next line.
clippy::clone_on_copyThe clone() method is called on a type that implements Copy.
E0614The dereference operator (*) is used on a type that does not implement Deref.
E0502A value cannot be mutably borrowed while an immutable borrow is still active.
E0106A reference in a function signature or struct is missing a lifetime parameter.