rust/tests/ui/macros/macro-followed-by-seq-bad.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
339 B
Rust
Raw Normal View History

// Regression test for issue #25436: check that things which can be
// followed by any token also permit X* to come afterwards.
2017-05-12 07:53:58 +00:00
#![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() { }