diff options
Diffstat (limited to 'tests/ui/macros/macro-multiple-items.rs')
-rw-r--r-- | tests/ui/macros/macro-multiple-items.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-multiple-items.rs b/tests/ui/macros/macro-multiple-items.rs new file mode 100644 index 000000000..3b6dfd9bc --- /dev/null +++ b/tests/ui/macros/macro-multiple-items.rs @@ -0,0 +1,16 @@ +// run-pass +macro_rules! make_foo { + () => ( + struct Foo; + + impl Foo { + fn bar(&self) {} + } + ) +} + +make_foo!(); + +pub fn main() { + Foo.bar() +} |