summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0532.rs
blob: 931ca4628fe1dd0013d2e8c02ae767da38bfd3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let value = 1;

    match SomeStruct(value) {
        StructConst1(_) => { },
        //~^ ERROR expected tuple struct/variant, found constant `StructConst1`
        _ => { },
    }

    struct SomeStruct(u8);

    const StructConst1 : SomeStruct = SomeStruct(1);
    const StructConst2 : SomeStruct = SomeStruct(2);
}