about summary refs log tree commit diff
path: root/src/test/ui/impl-trait/equality2.stderr
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/impl-trait/equality2.stderr
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/impl-trait/equality2.stderr')
-rw-r--r--src/test/ui/impl-trait/equality2.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/impl-trait/equality2.stderr b/src/test/ui/impl-trait/equality2.stderr
index 3e6181adec0..e30e2626e9f 100644
--- a/src/test/ui/impl-trait/equality2.stderr
+++ b/src/test/ui/impl-trait/equality2.stderr
@@ -15,6 +15,8 @@ LL |     let _: i32 = Leak::leak(hide(0_i32));
    |
    = note: expected type `i32`
               found type `<impl Foo as Leak>::T`
+   = note: consider constraining the associated type `<impl Foo as Leak>::T` to `i32`
+   = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
 
 error[E0308]: mismatched types
   --> $DIR/equality2.rs:38:10