Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.19 KB | None | 0 0
  1. #[derive(Fail, Debug)]
  2. pub enum MyError {
  3.     #[fail(display = "Input was invalid UTF-8 at index {}", _0)]
  4.     Utf8Error(usize),
  5.     #[fail(display = "{}", _0)]
  6.     Io(#[cause] io::Error),
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement