2015-05-15 12:20:26 -05:00
|
|
|
// Regression test for issue #25436: check that things which can be
|
|
|
|
// followed by any token also permit X* to come afterwards.
|
|
|
|
|
2017-05-12 02:53:58 -05:00
|
|
|
#![allow(unused_macros)]
|
|
|
|
|
2015-05-15 12:20:26 -05:00
|
|
|
macro_rules! foo {
|
|
|
|
( $a:expr $($b:tt)* ) => { }; //~ ERROR not allowed for `expr` fragments
|
|
|
|
( $a:ty $($b:tt)* ) => { }; //~ ERROR not allowed for `ty` fragments
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|