]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/expand-with-a-macro.rs
Rollup merge of #89670 - yoshuawuyts:available-parallelism-docs, r=joshtriplett
[rust.git] / src / test / ui / proc-macro / expand-with-a-macro.rs
1 // run-pass
2 // aux-build:expand-with-a-macro.rs
3
4 // ignore-wasm32-bare compiled with panic=abort by default
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 }