rust/tests/pretty/macro_rules.rs
Nicholas Nethercote 41e4a3e086 Don't insert spaces before most semicolons in print_tts.
This gives better output for code produced by proc macros.
2024-01-22 20:14:59 +11:00

20 lines
419 B
Rust

// pp-exact
macro_rules! brace { () => {}; }
macro_rules! bracket[() => {};];
macro_rules! paren(() => {};);
macro_rules! matcher_brackets {
(paren) => {}; (bracket) => {}; (brace) => {};
}
macro_rules! all_fragments {
($b : block, $e : expr, $i : ident, $it : item, $l : lifetime, $lit :
literal, $m : meta, $p : pat, $pth : path, $s : stmt, $tt : tt, $ty : ty,
$vis : vis) => {};
}
fn main() {}