2017-04-27 13:26:12 -07:00
|
|
|
// Check that we do suggest `(ref a, ref b)` here, since `a` and `b`
|
|
|
|
// are nested within a pattern
|
2017-04-14 21:04:37 -07:00
|
|
|
fn main() {
|
|
|
|
let x = vec![(String::new(), String::new())];
|
2019-05-05 12:02:32 +01:00
|
|
|
let (a, b) = x[0]; //~ ERROR cannot move out of index
|
2017-04-14 21:04:37 -07:00
|
|
|
}
|