summaryrefslogtreecommitdiff
path: root/tests/src/matches.rs
blob: 5710a6043e164af3a2187efdefe3133a2139f7bc (plain)
1
2
3
4
5
6
7
8
9
10
//@ [coq] skip
//@ [coq,fstar] subdir=misc
//^ note: coq gives "invalid notation for pattern"
fn match_u32(x: u32) -> u32 {
    match x {
        0 => 0,
        1 => 1,
        _ => 2,
    }
}