summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/expand-with-a-macro.rs
blob: 042a283659517791b3ac18a25c236e7fd1363ff5 (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
// aux-build: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());
}