]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-nt-list.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / macros / macro-nt-list.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 macro_rules! list {
5     ( ($($id:ident),*) ) => (());
6     ( [$($id:ident),*] ) => (());
7     ( {$($id:ident),*} ) => (());
8 }
9
10 macro_rules! tt_list {
11     ( ($($tt:tt),*) ) => (());
12 }
13
14 pub fn main() {
15     list!( () );
16     list!( [] );
17     list!( {} );
18
19     tt_list!( (a, b, c) );
20     tt_list!( () );
21 }