about summary refs log tree commit diff
path: root/tests/ui/proc-macro/expand-with-a-macro.rs
blob: e5baf3601db0a41b3b1d2a5442c9e24fb6f9b53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ run-pass
//@ needs-unwind
//@ proc-macro: expand-with-a-macro.rs


#![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());
}