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