mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
390 B
Rust
16 lines
390 B
Rust
// 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() {}
|