blob: baf15dba33a96b471dfb3fad5aa73445470be9ad (
plain)
1
2
3
4
5
6
7
8
|
// Regression test for #146537.
struct NonCopy;
fn main() {
let tuple = &(NonCopy,);
let b: NonCopy;
(b,) = *tuple; //~ ERROR: cannot move out of `tuple.0` which is behind a shared reference [E0507]
}
|