E4201#
Compiler diagnostic name: struct_constr_inconsistent_impl.
A struct constructor implementation has an inconsistent type compared with the constructor declaration on the struct.
The constructor's parameter arity, type parameters, effects, and return type
must match the declaration. In particular, a constructor for struct T must
construct T with the declared signature.
This diagnostic is produced by the struct-constructor consistency checker. The legacy declaration form that reaches this checker is currently rejected earlier by the parser/deprecation diagnostics, so this page is not monitored by a source-level error-code example.
Suggestion#
Update either the constructor declaration or the implementation so both sides describe the same function type.