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