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-04-22 02:40:08 -05:00
|
|
|
let (a, b) = x[0]; //~ ERROR cannot move out of borrowed content
|
2017-04-14 23:04:37 -05:00
|
|
|
}
|