Closed as not planned
Description
I'm not sure whether this is a bug or not, feel free to close if it's not.
I tried this code:
fn foo1() {
let c = 1i32;
let &x = &c;
}
fn foo2() {
let c = (1i32, 2i32);
let (&x, &y) = &c;
}
I expected to see this happen: Everything compiles fine, since components of the tuple are all Copy
.
Instead, this happened: The second case fails with bad diagnostics.