]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/expand-with-a-macro.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / expand-with-a-macro.rs
1 // run-pass
2 // needs-unwind
3 // aux-build:expand-with-a-macro.rs
4
5
6 #![deny(warnings)]
7
8 #[macro_use]
9 extern crate expand_with_a_macro;
10
11 use std::panic;
12
13 #[derive(A)]
14 struct A;
15
16 fn main() {
17     assert!(panic::catch_unwind(|| {
18         A.a();
19     }).is_err());
20 }