Files
rust/tests/ui/proc-macro/expand-with-a-macro.rs
2025-09-26 15:33:48 +02:00

22 lines
289 B
Rust

//@ run-pass
//@ needs-unwind
//@ proc-macro: expand-with-a-macro.rs
//@ ignore-backends: gcc
#![deny(warnings)]
#[macro_use]
extern crate expand_with_a_macro;
use std::panic;
#[derive(A)]
struct A;
fn main() {
assert!(panic::catch_unwind(|| {
A.a();
}).is_err());
}