<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TAKOYAKING</author_name>
  <author_url>https://blog.hatena.ne.jp/TAKOYAKING/</author_url>
  <blog_title>TAKOYAKING’s blog</blog_title>
  <blog_url>https://takoyaking.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>現象 struct Note { name:String, } let name = note.name.trim(); println!(&quot;{}&quot;, name); こういうコードを書いたら以下のようなエラーがでた。 Rust: temporary value is freed at the end of this stat 原因 rust - Temporary value is freed at the end of this statement - Stack Overflow こちらに書いてありました。 原因は&amp;strはStringの参照であり、&amp;strはStringが生きている限り参…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakoyaking.hatenablog.com%2Fentry%2Frust_temp_value_error&quot; title=&quot;Rust: temporary value is freed at the end of this stat - TAKOYAKING’s blog&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>2020-05-27 09:00:00</published>
  <title>Rust: temporary value is freed at the end of this stat</title>
  <type>rich</type>
  <url>https://takoyaking.hatenablog.com/entry/rust_temp_value_error</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
