]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-2636.stderr
Add regression test
[rust.git] / tests / ui / crashes / ice-2636.stderr
1 error: you don't need to add `&` to both the expression and the patterns
2   --> $DIR/ice-2636.rs:12: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    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: aborting due to previous error
17