check_pat_ref: use pattern_cause

This commit is contained in:
Mazdak Farrokhzad 2020-02-25 05:53:21 +01:00
parent b1de8f16ca
commit d234e131b8
6 changed files with 22 additions and 7 deletions

View file

@ -45,6 +45,8 @@ LL | box (true, false) => ()
error[E0308]: mismatched types
--> $DIR/issue-5100.rs:40:9
|
LL | match (true, false) {
| ------------- this expression has type `(bool, bool)`
LL | &(true, false) => ()
| ^^^^^^^^^^^^^^ expected tuple, found reference
|