]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / uninhabited / coercions_same_crate.stderr
index 8f6b709bb1f3405925437227873e9a96283c716b..fd2c56974bd4ac7567262ce420c41e9b72ad5750 100644 (file)
@@ -1,46 +1,34 @@
 error[E0308]: mismatched types
-  --> $DIR/coercions_same_crate.rs:31:5
+  --> $DIR/coercions_same_crate.rs:30:5
    |
 LL | fn cannot_coerce_empty_enum_to_anything(x: UninhabitedEnum) -> A {
    |                                                                - 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:35:5
+  --> $DIR/coercions_same_crate.rs:34:5
    |
 LL | fn cannot_coerce_empty_tuple_struct_to_anything(x: UninhabitedTupleStruct) -> A {
    |                                                                               - 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:39:5
+  --> $DIR/coercions_same_crate.rs:38:5
    |
 LL | fn cannot_coerce_empty_struct_to_anything(x: UninhabitedStruct) -> A {
    |                                                                    - 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:43:5
+  --> $DIR/coercions_same_crate.rs:42:5
    |
 LL | fn cannot_coerce_enum_with_empty_variants_to_anything(x: UninhabitedVariants) -> A {
    |                                                                                  - 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