blob: ebe67d2a321bc1087d0ab07cc86687e35c7c4ff5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Regression test for <https://github.com/rust-lang/rust/issues/137687#issuecomment-2816312274>.
//@ proc-macro: derive_macro_with_helper.rs
//@ edition: 2018
//@ check-pass
macro_rules! call_macro {
($text:expr) => {
#[derive(derive_macro_with_helper::Derive)]
#[arg($text)]
pub struct Foo;
};
}
call_macro!(1 + 1);
fn main() {}
|