E0597E0597 — Borrowed Value Does Not Live Long Enough
A reference outlives the data it points to.
E0369A binary operator is used with types that do not support it.
The types of the operands do not implement the required trait for the operator. For example, using + requires the Add trait, and == requires PartialEq. Custom types need trait implementations for operators.
Implement the required operator trait for your type (Add, Sub, PartialEq, etc.). Use #[derive(PartialEq)] for comparison operators. Convert values to compatible types before applying the operator.
E0597A reference outlives the data it points to.
E0373A closure captures a reference to a variable that may not live long enough.
E0382A value is used after it has been moved to another variable or function.
clippy::redundant_closureA closure that just calls a function can be replaced with the function itself.
clippy::unwrap_usedThe unwrap() method is used, which may panic at runtime.
E0424The self keyword is used outside of a method or associated function context.