2019-08-17 19:32:52 +03:00
|
|
|
// Derive macros can generate `macro_rules` items, regression test for issue #63651.
|
|
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: gen-macro-rules.rs
|
2025-09-26 13:59:06 +02:00
|
|
|
//@ ignore-backends: gcc
|
2019-08-17 19:32:52 +03:00
|
|
|
|
|
|
|
|
extern crate gen_macro_rules as repro;
|
|
|
|
|
|
|
|
|
|
#[derive(repro::repro)]
|
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
|
|
m!(); // OK
|
|
|
|
|
|
|
|
|
|
fn main() {}
|