diff options
Diffstat (limited to 'tests/ui/proc-macro/load-panic-backtrace.rs')
-rw-r--r-- | tests/ui/proc-macro/load-panic-backtrace.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/load-panic-backtrace.rs b/tests/ui/proc-macro/load-panic-backtrace.rs new file mode 100644 index 000000000..bcdcb704a --- /dev/null +++ b/tests/ui/proc-macro/load-panic-backtrace.rs @@ -0,0 +1,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() {} |