summaryrefslogtreecommitdiffstats
path: root/src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.rs
blob: b08732219db7dc3c077716be98baca7308234cba (plain)
1
2
3
4
5
6
7
8
#![feature(half_open_range_patterns)]
#![feature(exclusive_range_pattern)]

fn main() {
    let "a".. = "a"; //~ ERROR only `char` and numeric types are allowed in range patterns
    let .."a" = "a"; //~ ERROR only `char` and numeric types are allowed in range patterns
    let ..="a" = "a"; //~ ERROR only `char` and numeric types are allowed in range patterns
}