]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-40402-ref-hints/issue-40402-2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-40402-ref-hints / issue-40402-2.rs
1 // Check that we do suggest `(ref a, ref b)` here, since `a` and `b`
2 // are nested within a pattern
3 fn main() {
4 let x = vec![(String::new(), String::new())];
5 let (a, b) = x[0]; //~ ERROR cannot move out of index
6 }