Foo {f} => {}
};
- touch(&x); //~ ERROR use of partially moved value: `x`
- //~^ value used here after move
- //~| move occurs because `x.f` has type `std::string::String`
+ touch(&x); //~ ERROR borrow of partially moved value: `x`
+ //~^ value borrowed here after partial move
+ //~| partial move occurs because `x.f` has type `std::string::String`
}
fn main() {}