rust/tests/ui/consts/repeat_match.rs
2023-01-11 09:32:08 +00:00

13 lines
185 B
Rust

// run-pass
// https://github.com/rust-lang/rust/issues/45044
const X: [u8; 1] = [0; 1];
fn main() {
match &X {
&X => println!("a"),
_ => println!("b"),
};
}