p>rather than declaring it inline:</p>

<span class='rusttest'>fn main() {
    pub mod foo {
    pub fn bar() { println!(&quot;...&quot;); }
    /* ... */
}
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>pub</span> <span class='kw'>mod</span> <span class='ident'>foo</span> {
    <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>bar</span>() { <span class='macro'>println</span><span class='macro'>!</span>(<span class='string'>&quot;...&quot;</span>); }
    <span cl