error[E0409]: variable `y` is bound in inconsistent ways within the same match arm
- --> $DIR/E0409.rs:15:23
+ --> $DIR/E0409.rs:5:23
|
LL | (0, ref y) | (y, 0) => {} //~ ERROR E0409
| - ^ bound in different ways
| first binding
error[E0308]: mismatched types
- --> $DIR/E0409.rs:15:23
+ --> $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}`