summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-43250.rs
blob: 24d70d2964bb2fe299b2ce3e8aa5f9c9b3e08db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let mut y;
    const C: u32 = 0;
    macro_rules! m {
        ($a:expr) => {
            let $a = 0;
        }
    }
    m!(y);
    //~^ ERROR arbitrary expressions aren't allowed in patterns
    m!(C);
    //~^ ERROR arbitrary expressions aren't allowed in patterns
}