rust/tests/ui/proc-macro/gen-macro-rules.rs

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

14 lines
240 B
Rust
Raw Normal View History

// Derive macros can generate `macro_rules` items, regression test for issue #63651.
//@ check-pass
//@ aux-build:gen-macro-rules.rs
extern crate gen_macro_rules as repro;
#[derive(repro::repro)]
pub struct S;
m!(); // OK
fn main() {}