mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
15 lines
362 B
Rust
15 lines
362 B
Rust
//@ run-pass
|
|
#![allow(unused_macros)]
|
|
// Regression test for issue #25436: check that things which can be
|
|
// followed by any token also permit X* to come afterwards.
|
|
|
|
macro_rules! foo {
|
|
( $a:tt $($b:tt)* ) => { };
|
|
( $a:ident $($b:tt)* ) => { };
|
|
( $a:item $($b:tt)* ) => { };
|
|
( $a:block $($b:tt)* ) => { };
|
|
( $a:meta $($b:tt)* ) => { }
|
|
}
|
|
|
|
fn main() { }
|