mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
14 lines
264 B
Rust
14 lines
264 B
Rust
![]() |
#![feature(macro_metavar_expr_concat)]
|
||
|
|
||
|
macro_rules! join {
|
||
|
($lhs:ident, $rhs:ident) => {
|
||
|
${concat($lhs, $rhs)}
|
||
|
//~^ ERROR cannot find value `abcdef` in this scope
|
||
|
};
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let abcdef = 1;
|
||
|
let _another = join!(abc, def);
|
||
|
}
|