proc-macro-error 0.4.8

Almost drop-in replacement to panics in proc-macros
Documentation
1
2
3
4
5
6
7
8
9
extern crate rustversion;
extern crate trybuild;

#[rustversion::attr(any(before(1.39), not(stable)), ignore)]
#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/*.rs");
}