rust/tests/ui/macros/macro-nt-list.rs

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

22 lines
344 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
macro_rules! list {
( ($($id:ident),*) ) => (());
( [$($id:ident),*] ) => (());
( {$($id:ident),*} ) => (());
}
macro_rules! tt_list {
( ($($tt:tt),*) ) => (());
}
pub fn main() {
list!( () );
list!( [] );
list!( {} );
tt_list!( (a, b, c) );
tt_list!( () );
}