]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / rfc-2008-non-exhaustive / uninhabited / coercions.stderr
index d05ee1d39ec3555b3db7b9e1131b74f703d628c8..d2d319f50c78dfffc0dfa7d74ec9a4f8a8ecdac0 100644 (file)
@@ -5,9 +5,6 @@ LL | fn cannot_coerce_empty_enum_to_anything(x: UninhabitedEnum) -> A {
    |                                                                - 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
@@ -16,9 +13,6 @@ LL | fn cannot_coerce_empty_tuple_struct_to_anything(x: UninhabitedTupleStruct)
    |                                                                               - 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
@@ -27,9 +21,6 @@ LL | fn cannot_coerce_empty_struct_to_anything(x: UninhabitedStruct) -> A {
    |                                                                    - 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
@@ -38,9 +29,6 @@ LL | fn cannot_coerce_enum_with_empty_variants_to_anything(x: UninhabitedVariant
    |                                                                                  - 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