summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2023-09-08 06:23:56 +0200
committerLieselotte <52315535+she3py@users.noreply.github.com>2023-09-08 06:52:17 +0200
commit96c96645c7bb70a73ced2046df8fe083ad2ae3fc (patch)
tree82f938d5d1a0ef23e2c31e0529afb80fe2e28146 /tests/ui/error-codes
parent1e746d7741d44551e9378daf13b8797322aa0b74 (diff)
downloadrust-96c96645c7bb70a73ced2046df8fe083ad2ae3fc.tar.gz
rust-96c96645c7bb70a73ced2046df8fe083ad2ae3fc.zip
Improve "associated type not found" diagnostics
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0220.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0220.stderr b/tests/ui/error-codes/E0220.stderr
index 11763ce788d..e03eadacae4 100644
--- a/tests/ui/error-codes/E0220.stderr
+++ b/tests/ui/error-codes/E0220.stderr
@@ -2,7 +2,7 @@ error[E0220]: associated type `F` not found for `Trait`
   --> $DIR/E0220.rs:5:22
    |
 LL | type Foo = dyn Trait<F=i32>;
-   |                      ^ associated type `F` not found
+   |                      ^ help: `Trait` has the following associated type: `Bar`
 
 error[E0191]: the value of the associated type `Bar` (from trait `Trait`) must be specified
   --> $DIR/E0220.rs:5:16