summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/pattern-macro.rs
blob: e5d6a3aa1a0e612587cd35b868f27237c1ab4d11 (plain)
1
2
3
4
5
6
macro_rules! foo { () => ( x ) }

fn main() {
    let foo!() = 2;
    x + 1; //~ ERROR cannot find value `x` in this scope
}