mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
21 lines
313 B
Rust
21 lines
313 B
Rust
//@ run-pass
|
|
|
|
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!( () );
|
|
}
|