summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-7222.rs
blob: 64907316626647bc9f7a80c8ef754edae8d956b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// pretty-expanded FIXME #23616
#![allow(illegal_floating_point_literal_pattern)] // FIXME #41620

pub fn main() {
    const FOO: f64 = 10.0;

    match 0.0 {
        0.0 ..= FOO => (),
        _ => ()
    }
}