mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
14 lines
199 B
Rust
14 lines
199 B
Rust
|
//@ known-bug: rust-lang/rust#128346
|
||
|
|
||
|
macro_rules! one_rep {
|
||
|
( $($a:ident)* ) => {
|
||
|
A(
|
||
|
const ${concat($a, Z)}: i32 = 3;
|
||
|
)*
|
||
|
};
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
one_rep!(A B C);
|
||
|
}
|