blob: 0b8f40c5eff7fa412c9c000328432701fd534fb1 (
plain)
1
2
3
4
5
6
|
// Check that we do suggest `(ref a, ref b)` here, since `a` and `b`
// are nested within a pattern
fn main() {
let x = vec![(String::new(), String::new())];
let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
}
|