1 error[E0573]: expected type, found variant `Ty::A`
2 --> $DIR/variant-used-as-type.rs:7:7
7 help: try using the variant's enum
14 error[E0573]: expected type, found variant `E::A`
15 --> $DIR/variant-used-as-type.rs:17:6
20 help: try using the variant's enum
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0573`.