rust/tests/pretty/macro_rules.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
419 B
Rust
Raw Normal View History

// 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) => {};
}
2021-12-01 13:45:14 -06:00
fn main() {}