]> git.proxmox.com Git - rustc.git/blame - src/test/ui/match/expr_before_ident_pat.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / match / expr_before_ident_pat.rs
CommitLineData
a2a8927a
XL
1macro_rules! funny {
2 ($a:expr, $b:ident) => {
3 match [1, 2] {
4 [$a, $b] => {}
5 }
6 };
7}
8
9fn main() {
10 funny!(a, a);
11 //~^ ERROR cannot find value `a` in this scope
12 //~| ERROR arbitrary expressions aren't allowed in patterns
13}