about summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-27 20:45:08 +0200
committerRobin Appelman <robin@icewind.nl>2022-04-17 00:44:36 +0200
commitdecc04dbfbfe240e649cd4f891ca14d2f501c0ff (patch)
tree8c1adf1392bf09a02ddca5c0ce7ad8df20809a4a /src/test/ui/const-generics/issues
parent878c7833f6c1ff10e2fd89074e5bd4ef5ff15936 (diff)
downloadrust-decc04dbfbfe240e649cd4f891ca14d2f501c0ff.tar.gz
rust-decc04dbfbfe240e649cd4f891ca14d2f501c0ff.zip
show suggestion to replace generic bounds with associated types in more cases
Diffstat (limited to 'src/test/ui/const-generics/issues')
-rw-r--r--src/test/ui/const-generics/issues/issue-87493.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/issues/issue-87493.stderr b/src/test/ui/const-generics/issues/issue-87493.stderr
index 8f92eeaffd1..f998c1187d8 100644
--- a/src/test/ui/const-generics/issues/issue-87493.stderr
+++ b/src/test/ui/const-generics/issues/issue-87493.stderr
@@ -13,7 +13,7 @@ error[E0107]: this trait takes 0 generic arguments but 1 generic argument was su
   --> $DIR/issue-87493.rs:8:8
    |
 LL |     T: MyTrait<Assoc == S::Assoc>,
-   |        ^^^^^^^------------------- help: remove these generics
+   |        ^^^^^^^ ----------------- help: replace the generic bound with the associated type: `Assoc = Assoc == S::Assoc`
    |        |
    |        expected 0 generic arguments
    |