error[E0308]: mismatched types
--> $DIR/E0409.rs:5:23
|
+LL | match x {
+ | - this match expression has type `_`
LL | (0, ref y) | (y, 0) => {} //~ ERROR E0409
- | ^ expected &{integer}, found integral variable
+ | ^ expected &{integer}, found integer
|
= note: expected type `&{integer}`
found type `{integer}`