]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-multiple-items.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / macros / macro-multiple-items.rs
1 // run-pass
2 macro_rules! make_foo {
3     () => (
4         struct Foo;
5
6         impl Foo {
7             fn bar(&self) {}
8         }
9     )
10 }
11
12 make_foo!();
13
14 pub fn main() {
15     Foo.bar()
16 }