mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
18 lines
300 B
Rust
18 lines
300 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/51655>.
|
|
//! This used to ICE.
|
|
//@ check-pass
|
|
|
|
#![allow(dead_code)]
|
|
|
|
const PATH_DOT: &[u8] = &[b'.'];
|
|
|
|
fn match_slice(element: &[u8]) {
|
|
match element {
|
|
&[] => {}
|
|
PATH_DOT => {}
|
|
_ => {}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|