You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the no-args constructor generated by the NoArgsConstructor macro.
But when I tried to build the code, I got an error saying that the constructor is private:
error[E0624]: associated function `new_default` is private
It's working fine when the structure is inside the same file where I'm using the constructor, but if the structure is outside of the module where I'm using the constructor, I'm getting the error.
The text was updated successfully, but these errors were encountered:
I tried to use the no-args constructor generated by the
NoArgsConstructor
macro.But when I tried to build the code, I got an error saying that the constructor is private:
It's working fine when the structure is inside the same file where I'm using the constructor, but if the structure is outside of the module where I'm using the constructor, I'm getting the error.
The text was updated successfully, but these errors were encountered: