blob: aa42c7bb9c2f1368dffeb1bb1f0ea8fe9965190e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(move_ref_pattern)]
struct Foo {}
pub fn main() {
let mut tups = vec![(Foo {}, Foo {})];
// The below desugars to &(ref n, mut m).
for (n, mut m) in &tups {
//~^ ERROR cannot move out of a shared reference
}
}
|