mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 19:08:20 +00:00
7 lines
222 B
Rust
7 lines
222 B
Rust
// 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 index
|
|
}
|