<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() {
    static FOO: float = 10.0;

    match 0.0 {
        0.0 .. FOO =&gt; (),
        _ =&gt; ()
    }
}"><pre class="notranslate"><code class="notranslate">fn main() {
    static FOO: float = 10.0;

    match 0.0 {
        0.0 .. FOO =&gt; (),
        _ =&gt; ()
    }
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/brian/dev/rust/src/test/run-pass/test.rs:5:15: 5:18 error: unexpected token: `FOO`
/home/brian/dev/rust/src/test/run-pass/test.rs:5         0.0 .. FOO =&gt; (),"><pre class="notranslate"><code class="notranslate">/home/brian/dev/rust/src/test/run-pass/test.rs:5:15: 5:18 error: unexpected token: `FOO`
/home/brian/dev/rust/src/test/run-pass/test.rs:5         0.0 .. FOO =&gt; (),
</code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="static foo: int = 16;

fn main() {
    match 15 {
        3 .. foo =&gt; io::println(~&quot;success&quot;),
        _ =&gt; fail!()
    }
}"><pre class="notranslate"><span class="pl-k">static</span> foo<span class="pl-kos">:</span> <span class="pl-smi">int</span> = <span class="pl-c1">16</span><span class="pl-kos">;</span>

<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">match</span> <span class="pl-c1">15</span> <span class="pl-kos">{</span>
        <span class="pl-c1">3</span> .. foo =&gt; io<span class="pl-kos">::</span><span class="pl-en">println</span><span class="pl-kos">(</span>~"success"<span class="pl-kos">)</span><span class="pl-kos">,</span>
        _ =&gt; <span class="pl-en">fail</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo`
/tmp/rusttest.rs:5         3 .. foo =&gt; io::println(~&quot;success&quot;),
                                ^~~"><pre class="notranslate"><code class="notranslate">/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo`
/tmp/rusttest.rs:5         3 .. foo =&gt; io::println(~"success"),
                                ^~~
</code></pre></div>