mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
22 lines
346 B
Rust
22 lines
346 B
Rust
//@ 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!( () );
|
|
}
|