2018-11-15 10:03:41 -06:00
|
|
|
error: you don't need to add `&` to both the expression and the patterns
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/ice-2636.rs:12:9
|
2018-11-15 10:03:41 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / match $foo {
|
|
|
|
LL | | $ ( & $t => $ord,
|
|
|
|
LL | | )*
|
|
|
|
LL | | };
|
2018-11-15 10:03:41 -06:00
|
|
|
| |_________^
|
|
|
|
...
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | test_hash!(&a, A => 0, B => 1, C => 2);
|
2018-11-15 10:03:41 -06:00
|
|
|
| --------------------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `-D clippy::match-ref-pats` implied by `-D warnings`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-11-15 10:03:41 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|