errors.fyi community error code reference
E0401
rust

Inner Item Uses Outer Generic

A nested item such as an inner function or struct tries to use a generic parameter from its enclosing scope. Inner items are treated as top-level definitions and must explicitly redeclare any generic parameters they require.

References

โ† all namespaces for E0401