about summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness/issue-66501.rs
blob: e7a36ba3463e965df5aac265a3b4406c22243f83 (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(())] => {}
    }
}