about summary refs log tree commit diff
path: root/src/test/ui/structs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-11-14 23:45:30 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-11-18 11:03:03 -0800
commit94c642546497dd4c04609bd6dbe7631fb56df1fa (patch)
treedeb8c44a34db3e9e6cfd3e421e83c5d7317cacab /src/test/ui/structs
parentb2e6aef0731990c98a6fb7ac6f890aa359a5e9e6 (diff)
downloadrust-94c642546497dd4c04609bd6dbe7631fb56df1fa.tar.gz
rust-94c642546497dd4c04609bd6dbe7631fb56df1fa.zip
Remove E0308 note when primary label has all info
Diffstat (limited to 'src/test/ui/structs')
-rw-r--r--src/test/ui/structs/struct-base-wrong-type.stderr12
-rw-r--r--src/test/ui/structs/structure-constructor-type-mismatch.stderr24
2 files changed, 0 insertions, 36 deletions
diff --git a/src/test/ui/structs/struct-base-wrong-type.stderr b/src/test/ui/structs/struct-base-wrong-type.stderr
index c0bd9bda451..b039ce2cc92 100644
--- a/src/test/ui/structs/struct-base-wrong-type.stderr
+++ b/src/test/ui/structs/struct-base-wrong-type.stderr
@@ -3,36 +3,24 @@ error[E0308]: mismatched types
    |
 LL | static foo: Foo = Foo { a: 2, ..bar };
    |                                 ^^^ expected struct `Foo`, found struct `Bar`
-   |
-   = note: expected struct `Foo`
-              found struct `Bar`
 
 error[E0308]: mismatched types
   --> $DIR/struct-base-wrong-type.rs:8:35
    |
 LL | static foo_i: Foo = Foo { a: 2, ..4 };
    |                                   ^ expected struct `Foo`, found integer
-   |
-   = note: expected struct `Foo`
-                found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/struct-base-wrong-type.rs:12:27
    |
 LL |     let f = Foo { a: 2, ..b };
    |                           ^ expected struct `Foo`, found struct `Bar`
-   |
-   = note: expected struct `Foo`
-              found struct `Bar`
 
 error[E0308]: mismatched types
   --> $DIR/struct-base-wrong-type.rs:13:34
    |
 LL |     let f__isize = Foo { a: 2, ..4 };
    |                                  ^ expected struct `Foo`, found integer
-   |
-   = note: expected struct `Foo`
-                found type `{integer}`
 
 error: aborting due to 4 previous errors
 
diff --git a/src/test/ui/structs/structure-constructor-type-mismatch.stderr b/src/test/ui/structs/structure-constructor-type-mismatch.stderr
index 4a78fa3896f..f184f81647d 100644
--- a/src/test/ui/structs/structure-constructor-type-mismatch.stderr
+++ b/src/test/ui/structs/structure-constructor-type-mismatch.stderr
@@ -6,9 +6,6 @@ LL |         x: 1,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `1.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:20:12
@@ -18,9 +15,6 @@ LL |         y: 2,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `2.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:26:12
@@ -30,9 +24,6 @@ LL |         x: 3,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `3.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:29:12
@@ -42,9 +33,6 @@ LL |         y: 4,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `4.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:35:12
@@ -54,9 +42,6 @@ LL |         x: 5,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `5.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:42:12
@@ -66,9 +51,6 @@ LL |         x: 7,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `7.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0107]: wrong number of type arguments: expected 0, found 1
   --> $DIR/structure-constructor-type-mismatch.rs:48:24
@@ -84,9 +66,6 @@ LL |         x: 9,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `9.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:50:12
@@ -96,9 +75,6 @@ LL |         y: 10,
    |            |
    |            expected f32, found integer
    |            help: use a float literal: `10.0`
-   |
-   = note: expected type `f32`
-              found type `{integer}`
 
 error[E0107]: wrong number of type arguments: expected 0, found 1
   --> $DIR/structure-constructor-type-mismatch.rs:54:18