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
426 B
Rust
Raw Normal View History

// pp-exact
2021-12-01 13:45:14 -06:00
macro_rules! brace { () => {} ; }
2021-12-01 13:45:14 -06:00
macro_rules! bracket[() => {} ;];
2021-12-01 13:45:14 -06:00
macro_rules! paren(() => {} ;);
macro_rules! matcher_brackets {
2021-12-01 13:45:14 -06:00
(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() {}