summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/issue-66501.rs
blob: ffcfd4ad83e1f8e36fb49a89ce9892261c623561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![allow(unreachable_patterns)]

fn main() {
    const CONST: &[Option<()>; 1] = &[Some(())];
    match &[Some(())] {
        &[None] => {}
        CONST => {}
        &[Some(())] => {}
    }
}