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-08-25 21:58:59 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-09-18 17:30:35 -0700
commit479ce39939014f0071f8600fa4ce150e33cb7d5b (patch)
tree61f0645ebc04750f5327d420052619057271a3e1 /src/test/ui/structs
parentdece57302a8e6775b34dd6447eb98552e83bdc9d (diff)
downloadrust-479ce39939014f0071f8600fa4ce150e33cb7d5b.tar.gz
rust-479ce39939014f0071f8600fa4ce150e33cb7d5b.zip
Add explanation to type mismatch involving type params and assoc types
Diffstat (limited to 'src/test/ui/structs')
-rw-r--r--src/test/ui/structs/struct-path-self-type-mismatch.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/structs/struct-path-self-type-mismatch.stderr b/src/test/ui/structs/struct-path-self-type-mismatch.stderr
index 72c6d7ae22b..b905cd1a294 100644
--- a/src/test/ui/structs/struct-path-self-type-mismatch.stderr
+++ b/src/test/ui/structs/struct-path-self-type-mismatch.stderr
@@ -12,6 +12,8 @@ LL |             inner: u
    |
    = note: expected type `T`
               found type `U`
+   = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
+   = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
 
 error[E0308]: mismatched types
   --> $DIR/struct-path-self-type-mismatch.rs:13:9
@@ -27,6 +29,8 @@ LL | |         }
    |
    = note: expected type `Foo<U>`
               found type `Foo<T>`
+   = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
+   = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
 
 error: aborting due to 3 previous errors