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