]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-followed-by-seq.rs
Auto merge of #106952 - petrochenkov:docglob, r=notriddle,GuillaumeGomez
[rust.git] / tests / ui / macros / macro-followed-by-seq.rs
1 // run-pass
2 #![allow(unused_macros)]
3 // Regression test for issue #25436: check that things which can be
4 // followed by any token also permit X* to come afterwards.
5
6 macro_rules! foo {
7   ( $a:tt $($b:tt)* ) => { };
8   ( $a:ident $($b:tt)* ) => { };
9   ( $a:item $($b:tt)* ) => { };
10   ( $a:block $($b:tt)* ) => { };
11   ( $a:meta $($b:tt)* ) => { }
12 }
13
14 fn main() { }