blob: 663d8ddc4843ab88aced41cebc17c0b11ce61754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ check-pass
//
// This shows a tricky case for #124141, where `declare!(_x)` was incorrectly
// being categorised as a `StmtKind::Expr` instead of a `StmtKind::MacCall` in
// `parse_stmt_mac`.
macro_rules! as_stmt { ($s:stmt) => { $s }; }
macro_rules! declare { ($name:ident) => { let $name = 0u32; }; }
fn main() { as_stmt!(declare!(_x)); }
|