summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/load-panic-backtrace.rs
blob: bcdcb704a7538b12ccb606ed324ad849d5a740ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// aux-build:test-macros.rs
// compile-flags: -Z proc-macro-backtrace
// rustc-env:RUST_BACKTRACE=0
// normalize-stderr-test "thread '.*' panicked " -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
// needs-unwind proc macro panics to report errors

#[macro_use]
extern crate test_macros;

#[derive(Panic)]
//~^ ERROR: proc-macro derive panicked
struct Foo;

fn main() {}