diff --git a/tests/ui/associated-types/associated-types-incomplete-object.stderr b/tests/ui/associated-types/associated-types-incomplete-object.stderr
index 0c9761afeb517..c1b0a4c500c48 100644
--- a/tests/ui/associated-types/associated-types-incomplete-object.stderr
+++ b/tests/ui/associated-types/associated-types-incomplete-object.stderr
@@ -25,7 +25,7 @@ LL | type B;
| ------ `B` defined here
...
LL | let d = &42isize as &dyn Foo;
- | ^^^ help: specify the associated types: `Foo`
+ | ^^^ help: specify the associated types: `Foo::`
error: aborting due to 3 previous errors
diff --git a/tests/ui/associated-types/issue-22560.stderr b/tests/ui/associated-types/issue-22560.stderr
index 46e6e3951a5bd..8911fe8ee6e83 100644
--- a/tests/ui/associated-types/issue-22560.stderr
+++ b/tests/ui/associated-types/issue-22560.stderr
@@ -25,8 +25,8 @@ LL | type Test = dyn Add + Sub;
|
help: specify the associated types
|
-LL | type Test = dyn Add