about summary refs log tree commit diff
path: root/tests/ui/hygiene/issue-15221.rs
blob: 7703cb2de4e81643e5b0fc1a7f952d097b4b6316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ run-pass
#![allow(path_statements)]

macro_rules! inner {
    ($e:pat ) => ($e)
}

macro_rules! outer {
    ($e:pat ) => (inner!($e))
}

fn main() {
    let outer!(g1) = 13;
    g1;
}