]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/repeat_match.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / 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 }