pan class='string'>&quot;foo\n        bar&quot;</span>, <span class='ident'>s</span>);</pre>

<!-- The second, with a `\`, trims the spaces and the newline: -->

<p>もう一つは <code>\</code> を使って空白と改行を削る形式です:</p>

<span class='rusttest'>fn main() {
    let s = &quot;foo\
    bar&quot;;

assert_eq!(&quot;foobar&quot;, s);
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>let</span> <span class='ident'>s</span> <span class='op'>=</span> <span class='string'