2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-02 14:44:21 -08:00
|
|
|
macro_rules! list {
|
2014-10-06 23:15:12 -07:00
|
|
|
( ($($id:ident),*) ) => (());
|
|
|
|
( [$($id:ident),*] ) => (());
|
|
|
|
( {$($id:ident),*} ) => (());
|
2015-01-02 14:44:21 -08:00
|
|
|
}
|
2014-10-06 23:15:12 -07:00
|
|
|
|
2015-01-02 14:44:21 -08:00
|
|
|
macro_rules! tt_list {
|
2014-10-06 23:15:12 -07:00
|
|
|
( ($($tt:tt),*) ) => (());
|
2015-01-02 14:44:21 -08:00
|
|
|
}
|
2014-10-06 23:15:12 -07:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
list!( () );
|
|
|
|
list!( [] );
|
|
|
|
list!( {} );
|
|
|
|
|
|
|
|
tt_list!( (a, b, c) );
|
|
|
|
tt_list!( () );
|
|
|
|
}
|