proc-macro-error2 2.0.1

Almost drop-in replacement to panics in proc-macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use test_crate::*;

enum NeedDefault {
    A,
    B,
}

dummy!(need_default);

fn main() {
    let _ = NeedDefault::default();
}