summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-followed-by-seq-bad.rs
blob: b73742f77ea5841140e306282964712ad520023d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for issue #25436: check that things which can be
// followed by any token also permit X* to come afterwards.

#![allow(unused_macros)]

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() { }