]> git.lizzy.rs Git - rust.git/blob - tests/ui/ice-2636.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / ice-2636.stderr
1 error: you don't need to add `&` to both the expression and the patterns
2   --> $DIR/ice-2636.rs:21:9
3    |
4 LL | /         match $foo {
5 LL | |             $ ( & $t => $ord,
6 LL | |             )*
7 LL | |         };
8    | |_________^
9 ...
10 LL |       test_hash!(&a, A => 0, B => 1, C => 2);
11    |       --------------------------------------- in this macro invocation
12    |
13    = note: `-D clippy::match-ref-pats` implied by `-D warnings`
14
15 error: aborting due to previous error
16