<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
    <anon>rust</anon>
  </categories>
  <description>When I write Rust code as below, it occurs error. I tried to print two same String by copying memory. fn main() { let s1 = String::from(&quot;Hello&quot;); let s2 = s1; println!(&quot;{}, {}&quot;, s1, s2); } error[E0382]: use of moved value: `s1` --&gt; src/main.rs:14:24 | 13 | let s2 = s1; | -- value moved here 14 | pri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2018%2F04%2F22%2F002211&quot; title=&quot;Rust: Error for copying String allocated memory to new variable. - kakts-log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-22 00:22:11</published>
  <title>Rust: Error for copying String allocated memory to new variable.</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/2018/04/22/002211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
