| - expected `A` because of return type
LL | x
| ^ expected struct `A`, found enum `uninhabited::UninhabitedEnum`
- |
- = note: expected type `A`
- found type `uninhabited::UninhabitedEnum`
error[E0308]: mismatched types
--> $DIR/coercions.rs:27:5
| - expected `A` because of return type
LL | x
| ^ expected struct `A`, found struct `uninhabited::UninhabitedTupleStruct`
- |
- = note: expected type `A`
- found type `uninhabited::UninhabitedTupleStruct`
error[E0308]: mismatched types
--> $DIR/coercions.rs:31:5
| - expected `A` because of return type
LL | x
| ^ expected struct `A`, found struct `uninhabited::UninhabitedStruct`
- |
- = note: expected type `A`
- found type `uninhabited::UninhabitedStruct`
error[E0308]: mismatched types
--> $DIR/coercions.rs:35:5
| - expected `A` because of return type
LL | x
| ^ expected struct `A`, found enum `uninhabited::UninhabitedVariants`
- |
- = note: expected type `A`
- found type `uninhabited::UninhabitedVariants`
error: aborting due to 4 previous errors