therror 0.0.48

derive(Error) with a twist (based on thiserror)
Documentation
1
2
3
4
5
6
7
8
9
use therror::Error;

#[derive(Error)]
pub union U {
    msg: &'static str,
    num: usize,
}

fn main() {}