]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-followed-by-seq-bad.rs
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[rust.git] / src / test / ui / macros / macro-followed-by-seq-bad.rs
1 // Regression test for issue #25436: check that things which can be
2 // followed by any token also permit X* to come afterwards.
3
4 #![allow(unused_macros)]
5
6 macro_rules! foo {
7   ( $a:expr $($b:tt)* ) => { }; //~ ERROR not allowed for `expr` fragments
8   ( $a:ty $($b:tt)* ) => { };   //~ ERROR not allowed for `ty` fragments
9 }
10
11 fn main() { }