2 StructWithFields { x: () },
10 StructWithFields { x: () },
15 StructWithFields { x: () },
26 // Only variants without fields are suggested (and others mentioned in a note) where an enum
27 // is used rather than a variant.
30 //~^ ERROR expected value, found enum `A`
32 //~^ ERROR expected value, found enum `B`
34 //~^ ERROR expected value, found enum `C`
36 //~^ ERROR expected value, found enum `D`
38 // Only tuple variants are suggested in calls or tuple struct pattern matching.
41 //~^ ERROR expected function, tuple struct or tuple variant, found enum `A`
43 //~^ ERROR expected tuple struct or tuple variant, found enum `A`