E0515E0515 — Cannot Return Reference to Local Variable
A function tries to return a reference to a value that is created inside the function.
E0614The dereference operator (*) is used on a type that does not implement Deref.
You are trying to dereference a value that is not a reference, Box, Rc, or other type that implements the Deref trait. The type does not support the * operator.
Remove the unnecessary dereference operator. Use the appropriate method to access the inner value. Implement the Deref trait for your custom type if dereferencing makes sense.
E0515A function tries to return a reference to a value that is created inside the function.
E0423A type name is used where a value was expected.
E0308The expected type does not match the actual type provided.
E0425An identifier is used but not defined in the current scope.
E0658A feature that is not yet stabilized in Rust is being used without the feature gate.
E0597A reference outlives the data it points to.