summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorOhad Ravid <ohad.rv@gmail.com>2019-12-18 20:35:18 +0100
committerOhad Ravid <ohad.rv@gmail.com>2019-12-18 21:07:32 +0100
commita4a2fc0af33ef5a4e1211c5d3e4f0eeca02322f8 (patch)
treed9f9fceecf215563547000cddc91b439adee2ec4 /src/test/ui/span
parent99b89533d4cdf7682ea4054ad0ee36c351d05df1 (diff)
downloadrust-a4a2fc0af33ef5a4e1211c5d3e4f0eeca02322f8.tar.gz
rust-a4a2fc0af33ef5a4e1211c5d3e4f0eeca02322f8.zip
Suggest associated type when the specified one cannot be found
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/type-binding.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/span/type-binding.stderr b/src/test/ui/span/type-binding.stderr
index 421af67d19c..c3e95455532 100644
--- a/src/test/ui/span/type-binding.stderr
+++ b/src/test/ui/span/type-binding.stderr
@@ -2,7 +2,7 @@ error[E0220]: associated type `Trget` not found for `std::ops::Deref`
   --> $DIR/type-binding.rs:6:20
    |
 LL | fn homura<T: Deref<Trget = i32>>(_: T) {}
-   |                    ^^^^^^^^^^^ associated type `Trget` not found
+   |                    ^^^^^^^^^^^ help: there is an associated type with a similar name: `Target`
 
 error: aborting due to previous error