diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-08-25 21:58:59 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-09-18 17:30:35 -0700 |
| commit | 479ce39939014f0071f8600fa4ce150e33cb7d5b (patch) | |
| tree | 61f0645ebc04750f5327d420052619057271a3e1 /src/test/ui/impl-trait/equality2.stderr | |
| parent | dece57302a8e6775b34dd6447eb98552e83bdc9d (diff) | |
| download | rust-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.stderr | 2 |
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 |
