E0716E0716 — Temporary Value Dropped While Borrowed
A reference is held to a temporary value that is immediately dropped.
E0015A non-const function is called in a constant expression context.
You are calling a function in a const or static context that is not marked as const fn. Only const fn functions can be evaluated at compile time.
Mark the function as const fn if possible. Move the computation to runtime (use lazy_static! or once_cell). Use a literal value instead of a function call in const contexts.
E0716A reference is held to a temporary value that is immediately dropped.
E0308The function returns a Result with the wrong Ok or Err type.
clippy::needless_returnA return keyword is used unnecessarily at the end of a function.
E0405A trait name is used but not defined or imported in the current scope.
panic-slice-index-out-of-rangeThe program panicked because a slice range is out of bounds.
E0308The closure returns a different type than expected by the context.