summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-16745.rs
blob: e9137df0f1e84901d90a3414525770cb5afe6cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
fn main() {
    const X: u8 = 0;
    let out: u8 = match 0u8 {
        X => 99,
        b'\t' => 1,
        1u8 => 2,
        _ => 3,
    };
    assert_eq!(out, 99);
}