1
Fork 0

Add a regression test for issue-66501

This commit is contained in:
Yuki Okushi 2020-10-01 14:09:57 +09:00
parent b218b952f8
commit c1e17f56ea

View file

@ -0,0 +1,12 @@
// check-pass
#![allow(unreachable_patterns)]
fn main() {
const CONST: &[Option<()>; 1] = &[Some(())];
match &[Some(())] {
&[None] => {}
CONST => {}
&[Some(())] => {}
}
}