summaryrefslogtreecommitdiffstats
path: root/tests/ui/underscore-ident-matcher.rs
blob: bddc8c80a7b96f637d97170f07dc8d3427a3e11f (plain)
1
2
3
4
5
6
7
8
9
macro_rules! identity {
    ($i: ident) => (
        $i
    )
}

fn main() {
    let identity!(_) = 10; //~ ERROR no rules expected the token `_`
}