mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
209 B
Rust
13 lines
209 B
Rust
// check-pass
|
|
|
|
#![allow(unreachable_patterns)]
|
|
|
|
fn main() {
|
|
const CONST: &[Option<()>; 1] = &[Some(())];
|
|
match &[Some(())] {
|
|
&[None] => {}
|
|
CONST => {}
|
|
&[Some(())] => {}
|
|
}
|
|
}
|