check_pat_ref: use pattern_cause
This commit is contained in:
parent
b1de8f16ca
commit
d234e131b8
6 changed files with 22 additions and 7 deletions
|
|
@ -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
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue