1 error[E0009]: cannot bind by-move and by-ref in the same pattern
2 --> $DIR/E0009.rs:15:15
4 LL | Some((y, ref z)) => {},
5 | ^ ----- both by-ref and by-move used
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0009`.