mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
17 lines
575 B
Text
17 lines
575 B
Text
error: you don't need to add `&` to both the expression and the patterns
|
|
--> $DIR/ice-2636.rs:12:9
|
|
|
|
|
LL | / match $foo {
|
|
LL | | $ ( & $t => $ord,
|
|
LL | | )*
|
|
LL | | };
|
|
| |_________^
|
|
...
|
|
LL | test_hash!(&a, A => 0, B => 1, C => 2);
|
|
| --------------------------------------- in this macro invocation
|
|
|
|
|
= note: `-D clippy::match-ref-pats` implied by `-D warnings`
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to previous error
|
|
|