rust/tests/ui/macros/macro-multiple-items.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
183 B
Rust
Raw Normal View History

//@ run-pass
macro_rules! make_foo {
() => (
struct Foo;
impl Foo {
fn bar(&self) {}
}
)
}
make_foo!();
pub fn main() {
Foo.bar()
}