以下だと、Testの get_name ではエラーになるけど、 Test2のget_age はエラーにならない。 cannot move out of self.name which is behind a shared reference move occurs because self.name has type String, which does not implement the Copy trait struct Test { name: String } impl Test { fn get_name(&self) -> String{ return self.name; } }…