2020-09-27 08:52:51 -05:00
|
|
|
// Macros were previously expanded in `Expr` nonterminal tokens, now they are not.
|
|
|
|
|
|
|
|
macro_rules! pass_nonterminal {
|
|
|
|
($n:expr) => {
|
2021-07-09 15:03:48 -05:00
|
|
|
#[repr(align($n))]
|
|
|
|
//~^ ERROR expected unsuffixed literal or identifier, found `n!()`
|
|
|
|
//~| ERROR incorrect `repr(align)` attribute format
|
2020-09-27 08:52:51 -05:00
|
|
|
struct S;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! n {
|
|
|
|
() => { 32 };
|
|
|
|
}
|
|
|
|
|
|
|
|
pass_nonterminal!(n!());
|
|
|
|
|
|
|
|
fn main() {}
|