quot;Got: {}&quot;</span>, <span class='ident'>slice</span>);
}

<span class='kw'>fn</span> <span class='ident'>main</span>() {
    <span class='kw'>let</span> <span class='ident'>s</span> <span class='op'>=</span> <span class='string'>&quot;Hello&quot;</span>.<span class='ident'>to_string</span>();
    <span class='ident'>takes_slice</span>(<span class='kw-2'>&amp;</span><span class='ident'>s</span>);
}</pre>

<!-- This coercion does not happen for functions that accept one of `&str`’s traits -->

<!-- i