summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/repeat_match.rs
blob: 20983184a473a4d5cd397bc57ebe865edab40216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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"),
    };
}