]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/expr_before_ident_pat.rs
Rollup merge of #92336 - dtolnay:printstateself, r=michaelwoerister
[rust.git] / src / test / ui / match / expr_before_ident_pat.rs
1 #![feature(half_open_range_patterns)]
2
3 macro_rules! funny {
4     ($a:expr, $b:ident) => {
5         match [1, 2] {
6             [$a, $b] => {}
7         }
8     };
9 }
10
11 fn main() {
12     funny!(a, a);
13     //~^ ERROR cannot find value `a` in this scope
14     //~| ERROR arbitrary expressions aren't allowed in patterns
15 }