]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-87877.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / issue-87877.rs
1 // check-pass
2
3 macro_rules! two_items {
4     () => {
5         extern "C" {}
6         extern "C" {}
7     };
8 }
9
10 macro_rules! single_expr_funneler {
11     ($expr:expr) => {
12         $expr; // note the semicolon, it changes the statement kind during parsing
13     };
14 }
15
16 macro_rules! single_item_funneler {
17     ($item:item) => {
18         $item
19     };
20 }
21
22 fn main() {
23     single_expr_funneler! { two_items! {} }
24     single_item_funneler! { two_items! {} }
25 }