]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/expr_before_ident_pat.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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 }