about summary refs log tree commit diff
path: root/src/test/ui/structs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2021-12-13 21:22:02 -0800
committerMichael Goulet <michael@errs.io>2021-12-14 11:32:06 -0800
commitf29fb4792b1fa344817d95e997ef8de4befee302 (patch)
treee9b2bc5ec3174bb223db1fe4fe31b2b032355456 /src/test/ui/structs
parent8f117a77d0880ed59afcc1a19c72ec5c1e44b97c (diff)
downloadrust-f29fb4792b1fa344817d95e997ef8de4befee302.tar.gz
rust-f29fb4792b1fa344817d95e997ef8de4befee302.zip
Make TyS::is_suggestable more structual
Diffstat (limited to 'src/test/ui/structs')
-rw-r--r--src/test/ui/structs/structure-constructor-type-mismatch.stderr6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/ui/structs/structure-constructor-type-mismatch.stderr b/src/test/ui/structs/structure-constructor-type-mismatch.stderr
index 3d64fc601df..98972a12159 100644
--- a/src/test/ui/structs/structure-constructor-type-mismatch.stderr
+++ b/src/test/ui/structs/structure-constructor-type-mismatch.stderr
@@ -101,8 +101,6 @@ LL | type PointF = Point<f32>;
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:54:9
    |
-LL |     match (Point { x: 1, y: 2 }) {
-   |           ---------------------- this expression has type `Point<{integer}>`
 LL |         PointF::<u32> { .. } => {}
    |         ^^^^^^^^^^^^^^^^^^^^ expected integer, found `f32`
    |
@@ -112,8 +110,6 @@ LL |         PointF::<u32> { .. } => {}
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:59:9
    |
-LL |     match (Point { x: 1, y: 2 }) {
-   |           ---------------------- this expression has type `Point<{integer}>`
 LL |         PointF { .. } => {}
    |         ^^^^^^^^^^^^^ expected integer, found `f32`
    |
@@ -123,8 +119,6 @@ LL |         PointF { .. } => {}
 error[E0308]: mismatched types
   --> $DIR/structure-constructor-type-mismatch.rs:67:9
    |
-LL |     match (Pair { x: 1, y: 2 }) {
-   |           --------------------- this expression has type `Pair<{integer}, {integer}>`
 LL |         PairF::<u32> { .. } => {}
    |         ^^^^^^^^^^^^^^^^^^^ expected integer, found `f32`
    |