]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/expand-with-a-macro.rs
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / proc-macro / expand-with-a-macro.rs
1 // run-pass
2 // needs-unwind
3 // aux-build:expand-with-a-macro.rs
4
5 // ignore-wasm32-bare compiled with panic=abort by default
6
7 #![deny(warnings)]
8
9 #[macro_use]
10 extern crate expand_with_a_macro;
11
12 use std::panic;
13
14 #[derive(A)]
15 struct A;
16
17 fn main() {
18     assert!(panic::catch_unwind(|| {
19         A.a();
20     }).is_err());
21 }