]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/repeat_match.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / consts / repeat_match.rs
1 // run-pass
2
3 // https://github.com/rust-lang/rust/issues/45044
4
5 const X: [u8; 1] = [0; 1];
6
7 fn main() {
8     match &X {
9         &X => println!("a"),
10         _ => println!("b"),
11     };
12 }