1 2 3 4 5 6 7 8
#[derive(Debug, onlyerror::Error)] enum Error { First, Second(usize), Third { key: String, value: Vec<usize> }, } fn main() {}