about summary refs log tree commit diff
path: root/tests/ui/macros/macro-metavar-expr-concat/hygiene.rs
blob: 24b0e36498a3ef1a51d5ce100d407819b69a09a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![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);
}