summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/const_signed_pat.rs
blob: c61239bb677e8841e9f4d10d9e7176644b240085 (plain)
1
2
3
4
5
6
7
8
9
// check-pass

fn main() {
    const MIN: i8 = -5;
    match 5i8 {
        MIN..=-1 => {},
        _ => {},
    }
}