| StructWithFields { x: () }, |
| StructWithFields { x: () }, |
| StructWithFields { x: () }, |
| // Only variants without fields are suggested (and others mentioned in a note) where an enum |
| // is used rather than a variant. |
| //~^ ERROR expected value, found enum `A` |
| //~^ ERROR expected value, found enum `B` |
| //~^ ERROR expected value, found enum `C` |
| //~^ ERROR expected value, found enum `D` |
| // Only tuple variants are suggested in calls or tuple struct pattern matching. |
| //~^ ERROR expected function, tuple struct or tuple variant, found enum `A` |
| //~^ ERROR expected tuple struct or tuple variant, found enum `A` |