2018-11-15 17:03:41 +01:00
|
|
|
error: you don't need to add `&` to both the expression and the patterns
|
|
|
|
--> $DIR/ice-2636.rs:21:9
|
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | / match $foo {
|
|
|
|
LL | | $ ( & $t => $ord,
|
|
|
|
LL | | )*
|
|
|
|
LL | | };
|
2018-11-15 17:03:41 +01:00
|
|
|
| |_________^
|
|
|
|
...
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | test_hash!(&a, A => 0, B => 1, C => 2);
|
2018-11-15 17:03:41 +01:00
|
|
|
| --------------------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `-D clippy::match-ref-pats` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|