Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[derive(Fail, Debug)]
- pub enum MyError {
- #[fail(display = "Input was invalid UTF-8 at index {}", _0)]
- Utf8Error(usize),
- #[fail(display = "{}", _0)]
- Io(#[cause] io::Error),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement