Got a really confusing error message:
pub struct Error(String); error[E0603]: tuple struct `Error` is private | 195 | Error(e.to_string())) | ^^^^^
The answer was of course:
pub struct Error(pub String);
But the error message really didn’t help much. I really wanted this error message to say something like “error[E0603]: tuple struct
Error is marked pub but has a private member, Maybe the member should be marked ‘pub’ as well?”
Agree / Disagree? I’m happy to go compiler diving to try and improve the error message, but thought I should get consensus on what a better error message might look like first.