summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/byte-string-inference.rs
blob: b1517de6b67971ebfd6d8c8d87ce56e16062f15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

fn load<L>() -> Option<L> {
    todo!()
}

fn main() {
    while let Some(tag) = load() {
        match &tag {
            b"NAME" => {}
            b"DATA" => {}
            _ => {}
        }
    }
}