]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0532.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0532.rs
1 fn main() {
2     let value = 1;
3
4     match SomeStruct(value) {
5         StructConst1(_) => { },
6         //~^ ERROR expected tuple struct/variant, found constant `StructConst1`
7         _ => { },
8     }
9
10     struct SomeStruct(u8);
11
12     const StructConst1 : SomeStruct = SomeStruct(1);
13     const StructConst2 : SomeStruct = SomeStruct(2);
14 }