about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-09-17 14:10:41 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-09-17 14:10:41 +0900
commitee99bb393953c31169e89597ec893fd15a3ff4ee (patch)
treead09803936b4bfccdfbee5b82b67aba6224e2b3c /src
parent9342be5538ad5c97e8d2496e1cbbf2530d377e5e (diff)
downloadrust-ee99bb393953c31169e89597ec893fd15a3ff4ee.tar.gz
rust-ee99bb393953c31169e89597ec893fd15a3ff4ee.zip
Apply review comments
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/const-generics/issues/issue-87493.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/const-generics/issues/issue-87493.stderr b/src/test/ui/const-generics/issues/issue-87493.stderr
index b1ac08b51b5..8f92eeaffd1 100644
--- a/src/test/ui/const-generics/issues/issue-87493.stderr
+++ b/src/test/ui/const-generics/issues/issue-87493.stderr
@@ -2,10 +2,12 @@ error: expected one of `,` or `>`, found `==`
   --> $DIR/issue-87493.rs:8:22
    |
 LL |     T: MyTrait<Assoc == S::Assoc>,
-   |                      ^^
-   |                      |
-   |                      expected one of `,` or `>`
-   |                      help: replace `==` with `=`: `=`
+   |                      ^^ expected one of `,` or `>`
+   |
+help: if you meant to use an associated type binding, replace `==` with `=`
+   |
+LL |     T: MyTrait<Assoc = S::Assoc>,
+   |                      ~
 
 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
   --> $DIR/issue-87493.rs:8:8