summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0029.rs
blob: d9b53e113c01ea14585e5f1f5f2b4183d142ccbe (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let s = "hoho";

    match s {
        "hello" ..= "world" => {}
        //~^ ERROR only `char` and numeric types are allowed in range patterns
        _ => {}
    }
}