E0424E0424 — Expected Value, Found self
The self keyword is used outside of a method or associated function context.
E0392A generic type or lifetime parameter is declared but not used in the struct or enum.
The struct or enum has a generic parameter that does not appear in any field. Rust requires all generic parameters to be used. Unused parameters create ambiguity in type inference.
Remove the unused parameter. Use PhantomData<T> to indicate the type is logically used without storing it. Add a field that uses the generic parameter.
E0424The self keyword is used outside of a method or associated function context.
E0596You are trying to mutably borrow a value that is not declared as mutable.
E0277A type that does not implement Send is used in a context that requires thread-safety.
E0505A value is moved while it is still borrowed by a reference.
E0317An if expression used as a value is missing an else branch.
E0015A non-const function is called in a constant expression context.