]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-multiple-items.rs
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / 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 }