Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

How come you get macro expansion errors? Or is it because you write incorrect syntax in the enum error definitions?

The example on the docs page is quite clear:

https://docs.rs/thiserror/latest/thiserror/#example

Including all kinds of errors: Strings, tagged unions and automatically converting from std::io::Error with added context.

That one page document is the entire documentation for the thiserror crate.



It’s been a while, I don’t remember the details, but it wasn’t syntax errors.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: