2020-08-30 22:17:24 -04:00
|
|
|
//@ aux-build:test-macros.rs
|
|
|
|
//@ compile-flags: -Z proc-macro-backtrace
|
|
|
|
//@ rustc-env:RUST_BACKTRACE=0
|
2024-06-21 15:15:36 +10:00
|
|
|
//@ normalize-stderr-test: "thread '.*' panicked " -> ""
|
|
|
|
//@ normalize-stderr-test: "note:.*RUST_BACKTRACE=1.*\n" -> ""
|
2022-09-12 22:42:04 +00:00
|
|
|
//@ needs-unwind proc macro panics to report errors
|
2020-08-30 22:17:24 -04:00
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate test_macros;
|
|
|
|
|
|
|
|
#[derive(Panic)]
|
|
|
|
//~^ ERROR: proc-macro derive panicked
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
fn main() {}
|