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