| // aux-build:test-macros.rs |
| // compile-flags: -Z proc-macro-backtrace |
| // rustc-env:RUST_BACKTRACE=0 |
| |
| // FIXME https://github.com/rust-lang/rust/issues/59998 |
| // normalize-stderr-test "thread '.*' panicked " -> "" |
| // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" |
| // normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> "" |
| // normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> "" |
| // normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> "" |
| // normalize-stderr-test "note: compiler flags.*\n\n" -> "" |
| // normalize-stderr-test "note: rustc.*running on.*\n\n" -> "" |
| |
| #[macro_use] |
| extern crate test_macros; |
| |
| #[derive(Panic)] |
| //~^ ERROR: proc-macro derive panicked |
| struct Foo; |
| |
| fn main() {} |