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.
E0401
rust 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.