summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0029-teach.rs
blob: 3ff8cb348e76a9c081e4a169ad9f4ac45d6bc1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Z teach

fn main() {
    let s = "hoho";

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