about summary refs log tree commit diff
path: root/tests/ui/macros/macro-metavar-expr-concat/empty-input.rs
blob: caad63c5f6b07cab1aff2975bc31ac9c0e59f119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Issue 50403
// Ensure that `concat` can't create empty identifiers
// FIXME(macro_metavar_expr_concat): this error message could be improved

macro_rules! empty {
    () => { ${concat()} } //~ ERROR expected identifier or string literal
                          //~^ERROR expected expression
}

fn main() {
    let x = empty!();
}