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