summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/match-larger-const.rs
blob: 6f9a353207fed0134dc08c8bb0f81bf3bc0a1ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#[derive(Eq, PartialEq)]
pub struct Data([u8; 4]);

const DATA: Data = Data([1, 2, 3, 4]);

fn main() {
    match DATA {
        DATA => (),
        _ => (),
    }
}