about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2024-12-05 16:57:30 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2024-12-06 10:50:20 +0000
commit060cecba1a049225cd83be0802d1583bc02e7422 (patch)
tree68e4b8a907794023ab93e30e972f875db8df0975 /tests
parentcb72b9bb37c53c495baa726bfafaa893fb81396a (diff)
downloadrust-060cecba1a049225cd83be0802d1583bc02e7422.tar.gz
rust-060cecba1a049225cd83be0802d1583bc02e7422.zip
Hide errors whose suggestions would contain error constants or types
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr b/tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr
index 4517610d8e5..aa1db4cb032 100644
--- a/tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr
+++ b/tests/ui/associated-consts/assoc-const-eq-ambiguity.stderr
@@ -26,12 +26,6 @@ LL | trait Parent2 { const C: &'static str; }
 LL |
 LL | fn take1(_: impl Trait1<C = "?">) {}
    |                         ^^^^^^^ ambiguous associated constant `C`
-   |
-   = help: consider introducing a new type parameter `T` and adding `where` constraints:
-               where
-                   T: Trait1,
-                   T: Parent2::C = {const error},
-                   T: Parent1::C = {const error}
 
 error: aborting due to 2 previous errors