about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2021-09-27 00:50:46 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2021-09-27 00:50:46 +0900
commit3e41397ef22f15f5bf17c148384756a0f7dbd662 (patch)
treef50d676a5ad64094a2f6bcf778c68a9a5602021c /src
parent620f480e64cb98a108d735ea4f53bb24acfc176a (diff)
downloadrust-3e41397ef22f15f5bf17c148384756a0f7dbd662.tar.gz
rust-3e41397ef22f15f5bf17c148384756a0f7dbd662.zip
fix test error
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/suggestions/issue-62843.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/suggestions/issue-62843.stderr b/src/test/ui/suggestions/issue-62843.stderr
index 93251b2c8db..29ba39cbe10 100644
--- a/src/test/ui/suggestions/issue-62843.stderr
+++ b/src/test/ui/suggestions/issue-62843.stderr
@@ -2,14 +2,16 @@ error[E0277]: expected a `FnMut<(char,)>` closure, found `String`
   --> $DIR/issue-62843.rs:4:32
    |
 LL |     println!("{:?}", line.find(pattern));
-   |                           ---- ^^^^^^^
-   |                           |    |
-   |                           |    expected an implementor of trait `Pattern<'_>`
-   |                           |    help: consider borrowing here: `&pattern`
+   |                           ---- ^^^^^^^ expected an implementor of trait `Pattern<'_>`
+   |                           |
    |                           required by a bound introduced by this call
    |
    = note: the trait bound `String: Pattern<'_>` is not satisfied
    = note: required because of the requirements on the impl of `Pattern<'_>` for `String`
+help: consider borrowing here
+   |
+LL |     println!("{:?}", line.find(&pattern));
+   |                                +
 
 error: aborting due to previous error