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