summary refs log tree commit diff
path: root/tests/ui/proc-macro/load-panic-backtrace.rs
blob: 56ef4e9e08841526f4f427f02804b1410e7adf03 (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() {}